Skip to content

Commit beb7777

Browse files
authored
GHA: Fix caching (#95)
Python version was previously ignored for caching. Should avoid GHA warnings and speed up jobs.
1 parent fde0bf6 commit beb7777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
uses: actions/cache@v1
2828
with:
2929
path: ~/.cache/pip
30-
key: ${{ runner.os }}-${{ hashFiles('**/.ci_pip_reqs.txt') }}-${{ hashFiles('**/setup.py') }}
30+
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/.ci_pip_reqs.txt') }}-${{ hashFiles('**/setup.py') }}
3131
restore-keys: |
32-
${{ runner.os }}-
32+
${{ runner.os }}-${{ matrix.python-version }}-
3333
3434
- name: Install dependencies
3535
run: |

0 commit comments

Comments
 (0)