]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
cache pip with setup-python action
authorDavid Lord <davidism@gmail.com>
Fri, 18 Feb 2022 00:58:13 +0000 (16:58 -0800)
committerDavid Lord <davidism@gmail.com>
Fri, 18 Feb 2022 00:58:13 +0000 (16:58 -0800)
.github/workflows/tests.yaml

index 4e48dd9cd0e84a7b05f86f3dde9da1849689393e..680092ac8c67d0c618a71e6f137e8678711df99a 100644 (file)
@@ -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: