Skip to content

Commit 75fd9cb

Browse files
committed
tweak caching
1 parent 2b02438 commit 75fd9cb

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ jobs:
2020
with:
2121
python-version: 3.9
2222

23-
- uses: actions/cache@v2
23+
- uses: actions/cache@v3
2424
id: cache
2525
with:
26-
path: ${{ env.pythonLocation }}
27-
key: lint-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('tests/requirements-linting.txt') }}
26+
path: |
27+
${{ env.pythonLocation }}
28+
.mypy_cache
29+
key: >
30+
lint
31+
${{ runner.os }}
32+
${{ env.pythonLocation }}
33+
${{ hashFiles('tests/requirements-linting.txt') }}
2834
2935
- name: install
3036
if: steps.cache.outputs.cache-hit != 'true'
@@ -54,11 +60,12 @@ jobs:
5460
with:
5561
python-version: 3.9
5662

57-
- uses: actions/cache@v2
63+
- uses: actions/cache@v3
5864
id: cache
5965
with:
6066
path: ${{ env.pythonLocation }}
6167
key: >
68+
docs-build
6269
${{ runner.os }}
6370
${{ env.pythonLocation }}
6471
${{ hashFiles('setup.py') }}
@@ -97,7 +104,7 @@ jobs:
97104
with:
98105
python-version: ${{ matrix.python-version }}
99106

100-
- uses: actions/cache@v2
107+
- uses: actions/cache@v3
101108
id: cache
102109
with:
103110
path: ${{ env.pythonLocation }}
@@ -109,8 +116,8 @@ jobs:
109116
${{ hashFiles('tests/requirements-testing.txt') }}
110117
111118
- name: install
112-
if: steps.cache.outputs.cache-hit != 'true'
113119
run: make install-testing
120+
if: steps.cache.outputs.cache-hit != 'true'
114121

115122
- name: compile
116123
run: |
@@ -159,7 +166,7 @@ jobs:
159166
with:
160167
python-version: ${{ matrix.python-version }}
161168

162-
- uses: actions/cache@v2
169+
- uses: actions/cache@v3
163170
id: cache
164171
with:
165172
path: ${{ env.pythonLocation }}
@@ -175,7 +182,6 @@ jobs:
175182
if: steps.cache.outputs.cache-hit != 'true'
176183

177184
- run: pip freeze
178-
if: steps.cache.outputs.cache-hit != 'true'
179185

180186
- run: mkdir coverage
181187

0 commit comments

Comments
 (0)