Skip to content

Commit 6a5b3ea

Browse files
authored
Use hash of all requirements files in cache keys for ci (#6061)
1 parent 31bf1ac commit 6a5b3ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- master
1010

11-
concurrency:
11+
concurrency:
1212
group: ${{ github.head_ref || github.run_id }}
1313
cancel-in-progress: true
1414

@@ -160,7 +160,7 @@ jobs:
160160
- uses: actions/cache@v2
161161
with:
162162
path: ${{ env.pythonLocation }}
163-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
163+
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
164164
- name: Install requirements
165165
run: |
166166
pip install wheel
@@ -229,7 +229,7 @@ jobs:
229229
- uses: actions/cache@v2
230230
with:
231231
path: ${{ env.pythonLocation }}
232-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
232+
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
233233
- name: Install requirements
234234
run: |
235235
pip install wheel
@@ -255,7 +255,7 @@ jobs:
255255
- uses: actions/cache@v2
256256
with:
257257
path: ${{ env.pythonLocation }}
258-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
258+
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
259259
- name: Install requirements
260260
run: |
261261
pip install wheel
@@ -280,7 +280,7 @@ jobs:
280280
- uses: actions/cache@v2
281281
with:
282282
path: ${{ env.pythonLocation }}
283-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
283+
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }}
284284
- name: Install requirements
285285
run: |
286286
pip install wheel

0 commit comments

Comments
 (0)