Skip to content

Commit

Permalink
Upgrade CI caching setup
Browse files Browse the repository at this point in the history
  • Loading branch information
int3l committed Aug 25, 2023
1 parent 0026cf4 commit 5bc5b00
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yaml
Expand Up @@ -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
Expand Down

0 comments on commit 5bc5b00

Please sign in to comment.