File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,16 @@ jobs:
78
78
${{ runner.os }}-${{ matrix.python-version }}-${{
79
79
steps.commitstring.outputs.commitstring }}-primer
80
80
- name : Regenerate cache
81
- if : steps.cache-projects.outputs.cache-hit != 'true'
81
+ # Presence of colorama is a heuristic for the env having all packages
82
82
run : |
83
83
. venv/bin/activate
84
- python tests/primer/__main__.py prepare --clone
84
+ if echo {{ steps.cache-projects.outputs.cache-hit }} | grep -c "true" && python -m pip show colorama
85
+ then
86
+ echo "Cache hit: skipping primer clone command"
87
+ else
88
+ python tests/primer/__main__.py prepare --clone
89
+ fi
90
+ shell : bash
85
91
- name : Upload commit string
86
92
87
93
if : matrix.batchIdx == 0
Original file line number Diff line number Diff line change @@ -147,10 +147,16 @@ jobs:
147
147
${{ runner.os }}-${{ matrix.python-version }}-${{
148
148
steps.commitstring.outputs.commitstring }}-primer
149
149
- name : Regenerate cache
150
- if : steps.cache-projects.outputs.cache-hit != 'true'
150
+ # Presence of colorama is a heuristic for the env having all packages
151
151
run : |
152
152
. venv/bin/activate
153
- python tests/primer/__main__.py prepare --clone
153
+ if echo {{ steps.cache-projects.outputs.cache-hit }} | grep -c "true" && python -m pip show colorama
154
+ then
155
+ echo "Cache hit: skipping primer clone command"
156
+ else
157
+ python tests/primer/__main__.py prepare --clone
158
+ fi
159
+ shell : bash
154
160
- name : Check cache
155
161
run : |
156
162
. venv/bin/activate
You can’t perform that action at this time.
0 commit comments