From 1aafadcfb96443dc8b2c66d464369fad6ead5571 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 29 Nov 2022 09:46:57 -0800 Subject: [PATCH] Caching projects that use setup.py (#549) --- docs/advanced-usage.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 9fc41ae..643e73d 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -281,6 +281,20 @@ steps: - run: pip install -e . -r subdirectory/requirements-dev.txt ``` +**Caching projects that use setup.py:** + +```yaml +steps: +- uses: actions/checkout@v3 +- uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + cache-dependency-path: setup.py +- run: pip install -e . + # Or pip install -e '.[test]' to install test dependencies +``` + # Outputs and environment variables ## Outputs