Skip to content

Commit 762c558

Browse files
committed
Use actions/setup-python's to cache pip
1 parent 4ea60b0 commit 762c558

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/main.yaml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,11 @@ jobs:
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
28-
- name: Get pip cache dir
29-
id: pip-cache
30-
run: |
31-
echo "::set-output name=dir::$(pip cache dir)"
32-
33-
- name: pip cache
34-
uses: actions/cache@v2
35-
with:
36-
path: ${{ steps.pip-cache.outputs.dir }}
37-
key:
38-
${{ runner.os }}-pip-${{ hashFiles('pyproject.toml', 'setup.py',
39-
'setup.cfg') }}
40-
restore-keys: |
41-
${{ runner.os }}-pip-
27+
cache: pip
28+
cache-dependency-path: |
29+
pyproject.toml
30+
setup.cfg
31+
setup.py
4232
4333
- name: Install
4434
run: |

0 commit comments

Comments
 (0)