Skip to content

Commit 8431ea9

Browse files
committed
Simplify cache config
1 parent eb9cdc7 commit 8431ea9

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2
12-
- uses: pre-commit/action@v2.0.2
12+
- uses: pre-commit/action@v2.0.3

.github/workflows/test.yml

+2-15
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,8 @@ jobs:
2626
uses: actions/setup-python@v2
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
30-
- name: Get pip cache dir
31-
id: pip-cache
32-
run: |
33-
echo "::set-output name=dir::$(pip cache dir)"
34-
35-
- name: Cache
36-
uses: actions/cache@v2
37-
with:
38-
path: ${{ steps.pip-cache.outputs.dir }}
39-
key:
40-
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{
41-
hashFiles('**/setup.py') }}
42-
restore-keys: |
43-
${{ matrix.os }}-${{ matrix.python-version }}-v1-
29+
cache: pip
30+
cache-dependency-path: "setup.py"
4431

4532
- name: Install dependencies
4633
run: |

0 commit comments

Comments
 (0)