From: David Lord Date: Fri, 18 Feb 2022 00:58:13 +0000 (-0800) Subject: cache pip with setup-python action X-Git-Tag: 3.0.x~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c66adcc5747cc7dd29a70c4e82185742a54a4dd9;p=thirdparty%2Fjinja.git cache pip with setup-python action --- 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: