Skip to content

Commit

Permalink
Merge pull request #1718 from jku/workflow-use-builtin-pip-cache
Browse files Browse the repository at this point in the history
CI: Use builtin package cache support
  • Loading branch information
Jussi Kukkonen authored Dec 20, 2021
2 parents 0f1fc6e + f7006f5 commit 4f8d494
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,8 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Find pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: pip cache
uses: actions/cache@v2
with:
# Use the os dependent pip cache directory found above
path: ${{ steps.pip-cache.outputs.dir }}
# A match with 'key' counts as cache hit
key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
# A match with 'restore-keys' is used as fallback
restore-keys: ${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: 'requirements*.txt'

- name: Install dependencies
run: |
Expand Down

0 comments on commit 4f8d494

Please sign in to comment.