diff options
author | David Lord <davidism@gmail.com> | 2022-02-07 09:52:59 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2022-02-07 10:31:44 -0800 |
commit | 8ec56826fcc5b34c375659a1c7078c8d725d73ba (patch) | |
tree | 888d513ef693b3b633c13e607d6c8735b63015c5 /.github | |
parent | 63d8364596f38b2bd757be4b51aedc3797e6e53b (diff) | |
download | werkzeug-8ec56826fcc5b34c375659a1c7078c8d725d73ba.tar.gz |
cache pip with setup-python action
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yaml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4e48dd9c..680092ac 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: |