42
42
with :
43
43
path : venv
44
44
key : >-
45
- ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
45
+ ${{ runner.os }}-${{ runner.arch }}-${{
46
+ steps.python.outputs.python-version }}-${{
46
47
steps.generate-python-key.outputs.key }}
47
48
- name : Create Python virtual environment
48
49
if : steps.cache-venv.outputs.cache-hit != 'true'
63
64
with :
64
65
path : ${{ env.PRE_COMMIT_CACHE }}
65
66
key : >-
66
- ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
67
+ ${{ runner.os }}-${{ runner.arch }}-${{
68
+ steps.python.outputs.python-version }}-${{
67
69
steps.generate-pre-commit-key.outputs.key }}
68
70
- name : Install pre-commit dependencies
69
71
if : steps.cache-precommit.outputs.cache-hit != 'true'
@@ -101,15 +103,17 @@ jobs:
101
103
with :
102
104
fail-on-cache-miss : true
103
105
path : venv
104
- key : ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
106
+ key : ${{ runner.os }}-${{ runner.arch }}-${{
107
+ steps.python.outputs.python-version }}-${{
105
108
needs.prepare-base.outputs.python-key }}
106
109
- name : Restore pre-commit environment
107
110
id : cache-precommit
108
111
uses : actions/cache/restore@v4.2.3
109
112
with :
110
113
fail-on-cache-miss : true
111
114
path : ${{ env.PRE_COMMIT_CACHE }}
112
- key : ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
115
+ key : ${{ runner.os }}-${{ runner.arch }}-${{
116
+ steps.python.outputs.python-version }}-${{
113
117
needs.prepare-base.outputs.pre-commit-key }}
114
118
- name : Run formatting check
115
119
run : |
@@ -135,7 +139,8 @@ jobs:
135
139
with :
136
140
fail-on-cache-miss : true
137
141
path : venv
138
- key : ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
142
+ key : ${{ runner.os }}-${{ runner.arch }}-${{
143
+ steps.python.outputs.python-version }}-${{
139
144
needs.prepare-base.outputs.python-key }}
140
145
- name : Run pylint
141
146
run : |
@@ -161,7 +166,8 @@ jobs:
161
166
with :
162
167
fail-on-cache-miss : true
163
168
path : venv
164
- key : ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
169
+ key : ${{ runner.os }}-${{ runner.arch }}-${{
170
+ steps.python.outputs.python-version }}-${{
165
171
needs.prepare-base.outputs.python-key }}
166
172
- name : Run mypy
167
173
run : |
@@ -198,7 +204,8 @@ jobs:
198
204
with :
199
205
path : venv
200
206
key : >-
201
- ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
207
+ ${{ runner.os }}-${{ runner.arch }}-${{
208
+ steps.python.outputs.python-version }}-${{
202
209
steps.generate-python-key.outputs.key }}
203
210
- name : Create Python virtual environment
204
211
if : steps.cache-venv.outputs.cache-hit != 'true'
0 commit comments