mirror of
https://github.com/actions/setup-python.git
synced 2024-12-01 11:20:59 -05:00
Fix subheadings in caching guide
This commit is contained in:
parent
0a5c615913
commit
3cfd90a803
1 changed files with 12 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue