Skip to content

Commit f58e13e

Browse files
fix: use GITHUB_REF as part of cache key for pip
1 parent 2559a93 commit f58e13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# This path is specific to Ubuntu
2222
path: ~/.cache/pip
2323
# Look to see if there is a cache hit for the corresponding requirements file
24-
key: ${{ runner.os }}-python${{ matrix.python-version}}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev_requirements.txt') }}
24+
key: ${{ runner.os }}-python${{ matrix.python-version}}-pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev_requirements.txt') }}-${ GITHUB_REF }
2525

2626
- name: Patch for Python 3.6
2727
if: matrix.python-version == 3.6

0 commit comments

Comments
 (0)