Skip to content

Commit 1aafadc

Browse files
authored
Caching projects that use setup.py (#549)
1 parent b80efd6 commit 1aafadc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/advanced-usage.md

+14
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,20 @@ steps:
281281
- run: pip install -e . -r subdirectory/requirements-dev.txt
282282
```
283283

284+
**Caching projects that use setup.py:**
285+
286+
```yaml
287+
steps:
288+
- uses: actions/checkout@v3
289+
- uses: actions/setup-python@v4
290+
with:
291+
python-version: '3.11'
292+
cache: 'pip'
293+
cache-dependency-path: setup.py
294+
- run: pip install -e .
295+
# Or pip install -e '.[test]' to install test dependencies
296+
```
297+
284298
# Outputs and environment variables
285299

286300
## Outputs

0 commit comments

Comments
 (0)