3
0
Fork 0
mirror of https://gitea.com/actions/setup-python.git synced 2024-11-22 18:19:35 +01:00

Fix subheadings in caching guide

This commit is contained in:
Aarni Koskela 2023-11-10 10:18:59 +02:00
parent 0a5c615913
commit 3cfd90a803

View file

@ -293,7 +293,8 @@ steps:
## Caching packages ## Caching packages
**Caching pipenv dependencies:** ### Caching pipenv dependencies
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -306,7 +307,8 @@ steps:
- run: pipenv install - run: pipenv install
``` ```
**Caching poetry dependencies:** ### Caching poetry dependencies
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -320,7 +322,8 @@ steps:
- run: poetry run pytest - run: poetry run pytest
``` ```
**Using a list of file paths to cache dependencies** ### Using a list of file paths to cache dependencies
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -335,7 +338,9 @@ steps:
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- run: pipenv install - run: pipenv install
``` ```
**Using wildcard patterns to cache dependencies**
### Using wildcard patterns to cache dependencies
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -347,7 +352,8 @@ steps:
- run: pip install -r subdirectory/requirements-dev.txt - run: pip install -r subdirectory/requirements-dev.txt
``` ```
**Using a list of wildcard patterns to cache dependencies** ### Using a list of wildcard patterns to cache dependencies
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -361,7 +367,7 @@ steps:
- run: pip install -e . -r subdirectory/requirements-dev.txt - run: pip install -e . -r subdirectory/requirements-dev.txt
``` ```
**Caching projects that use setup.py:** ### Caching projects that use setup.py (or pyproject.toml)
```yaml ```yaml
steps: steps: