Skip to content

Commit 8f755dd

Browse files
committed
ci: save cache by Python version
1 parent 6c3b444 commit 8f755dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ jobs:
4242
# This path is specific to Ubuntu
4343
path: ${{ steps.pip-cache.outputs.dir }}
4444
# Look to see if there is a cache hit for the corresponding requirements file
45-
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
45+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('pyproject.toml') }}
4646
restore-keys: |
47-
${{ runner.os }}-pip-
48-
${{ runner.os }}-
47+
${{ runner.os }}-${{ matrix.python-version }}-pip-
4948
5049
- name: Install dependencies
5150
run: |

0 commit comments

Comments
 (0)