Skip to content

Commit ffaa197

Browse files
committed
Hash setup.cfg, not setup.py, for CI envs
1 parent 0cacf7a commit ffaa197

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
key: >-
3636
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
3737
steps.python.outputs.python-version }}-${{
38-
hashFiles('setup.py') }}
38+
hashFiles('setup.cfg') }}
3939
restore-keys: |
4040
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
4141
- name: Create Python virtual environment
@@ -66,7 +66,7 @@ jobs:
6666
key: >-
6767
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
6868
steps.python.outputs.python-version }}-${{
69-
hashFiles('setup.py') }}
69+
hashFiles('setup.cfg') }}
7070
- name: Fail job if Python cache restore failed
7171
if: steps.cache-venv.outputs.cache-hit != 'true'
7272
run: |
@@ -107,7 +107,7 @@ jobs:
107107
key: >-
108108
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
109109
steps.python.outputs.python-version }}-${{
110-
hashFiles('setup.py') }}
110+
hashFiles('setup.cfg') }}
111111
- name: Fail job if Python cache restore failed
112112
if: steps.cache-venv.outputs.cache-hit != 'true'
113113
run: |
@@ -150,7 +150,7 @@ jobs:
150150
key: >-
151151
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
152152
steps.python.outputs.python-version }}-${{
153-
hashFiles('setup.py') }}
153+
hashFiles('setup.cfg') }}
154154
- name: Fail job if Python cache restore failed
155155
if: steps.cache-venv.outputs.cache-hit != 'true'
156156
run: |
@@ -196,7 +196,7 @@ jobs:
196196
key: >-
197197
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
198198
steps.python.outputs.python-version }}-${{
199-
hashFiles('setup.py') }}
199+
hashFiles('setup.cfg') }}
200200
- name: Fail job if Python cache restore failed
201201
if: steps.cache-venv.outputs.cache-hit != 'true'
202202
run: |
@@ -243,7 +243,7 @@ jobs:
243243
key: >-
244244
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
245245
steps.python.outputs.python-version }}-${{
246-
hashFiles('setup.py') }}
246+
hashFiles('setup.cfg') }}
247247
- name: Fail job if Python cache restore failed
248248
if: steps.cache-venv.outputs.cache-hit != 'true'
249249
run: |
@@ -298,7 +298,7 @@ jobs:
298298
key: >-
299299
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
300300
steps.python.outputs.python-version }}-${{
301-
hashFiles('setup.py') }}
301+
hashFiles('setup.cfg') }}
302302
- name: Fail job if Python cache restore failed
303303
if: steps.cache-venv.outputs.cache-hit != 'true'
304304
run: |

0 commit comments

Comments
 (0)