Skip to content

Commit

Permalink
Simplified caching in Github actions configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm committed Mar 28, 2022
1 parent 371fdeb commit 55bac8a
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/ci.yml
Expand Up @@ -27,13 +27,8 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-lint-${{ hashFiles('requirements/*.txt') }}
path: ~/.cache/pip
restore-keys: |
pip-lint-
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Install dependencies
uses: py-actions/py-dependency-install@v3
with:
Expand Down Expand Up @@ -89,17 +84,8 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.pyver }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-${{ hashFiles('requirements/*.txt') }}
path: ${{ steps.pip-cache.outputs.dir }}
restore-keys: |
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: Install cython
if: ${{ matrix.no-extensions == '' }}
uses: py-actions/py-dependency-install@v3
Expand Down

0 comments on commit 55bac8a

Please sign in to comment.