summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-02-15 07:43:26 -0800
committerDavid Lord <davidism@gmail.com>2022-02-15 07:43:26 -0800
commit004dfa1629a3ea5fac97801bf32dc23fcd28cfd9 (patch)
tree94502a1a57f2eec787b12c8fbfaecbb1c14391c3
parent0991a2962924c8c4ba9930a3cd3d0d15cb831c41 (diff)
downloadmarkupsafe-004dfa1629a3ea5fac97801bf32dc23fcd28cfd9.tar.gz
cache pip with setup-python action
-rw-r--r--.github/workflows/tests.yaml10
1 files changed, 2 insertions, 8 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 4e48dd9..680092a 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -39,19 +39,13 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
+ cache: 'pip'
+ cache-dependency-path: 'requirements/*.txt'
- name: update pip
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- - name: get pip cache dir
- id: pip-cache
- run: echo "::set-output name=dir::$(pip cache dir)"
- - name: cache pip
- uses: actions/cache@v2
- with:
- path: ${{ steps.pip-cache.outputs.dir }}
- key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
- name: cache mypy
uses: actions/cache@v2
with: