diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 51338b5..6aff93e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,21 +30,11 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} + cache: 'pip' - name: Upgrade bootstrap packages run: python -m pip install --upgrade pip tox - - name: Get pip cache dir - id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache pip - uses: actions/cache@v3 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: pip-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('setup.py') }} - restore-keys: pip-${{ runner.os }}-${{ matrix.python }}- - - name: Set Python version # See https://pre-commit.com/#github-actions-example run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV