Skip to content

Commit 1aafadc

Browse files
authored
Caching projects that use setup.py (actions#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

Lines changed: 14 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy