Skip to content

Commit 93f1d83

Browse files
committed
Hash correctly
1 parent 4cbc0e3 commit 93f1d83

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/verify.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
path: |
5151
venv
5252
${{ env.PRE_COMMIT_HOME }}
53-
key: ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
53+
key: ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('pyproject.toml', 'requirements_test.txt', '.pre-commit-config.yaml') }}
5454
- name: Install pre-commit dependencies
5555
if: steps.cache-precommit.outputs.cache-hit != 'true'
5656
run: |
@@ -78,8 +78,7 @@ jobs:
7878
path: |
7979
venv
8080
${{ env.PRE_COMMIT_HOME }}
81-
key: >-
82-
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
81+
key: ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('pyproject.toml', 'requirements_test.txt', '.pre-commit-config.yaml') }}
8382
- name: Fail job if Python cache restore failed
8483
if: steps.cache-venv.outputs.cache-hit != 'true'
8584
run: |
@@ -124,7 +123,7 @@ jobs:
124123
path: |
125124
venv
126125
${{ env.PRE_COMMIT_HOME }}
127-
key: ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }}
126+
key: ${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-cache-${{ env.CACHE_VERSION }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('pyproject.toml', 'requirements_test.txt', '.pre-commit-config.yaml') }}
128127
- name: Fail job if Python cache restore failed
129128
if: steps.cache-venv.outputs.cache-hit != 'true'
130129
run: |

0 commit comments

Comments
 (0)