@@ -185,10 +185,11 @@ jobs:
185
185
collect-junit : false
186
186
187
187
coverage :
188
- if : github.repository_owner == 'Chia-Network'
188
+ if : always() && github.repository_owner == 'Chia-Network'
189
189
name : ${{ matrix.os.emoji }} Coverage - ${{ matrix.python.name }}
190
190
runs-on : ${{ matrix.os.runs-on }}
191
191
needs :
192
+ - configure
192
193
- macos-intel
193
194
- macos-arm
194
195
- ubuntu
@@ -209,6 +210,12 @@ jobs:
209
210
matrix : " 3.10"
210
211
211
212
steps :
213
+ - uses : re-actors/alls-green@release/v1.2
214
+ id : alls-green
215
+ with :
216
+ allowed-skips : ${{ needs.configure.outputs.mac_intel != 'true' && 'macos-intel' || '' }}
217
+ jobs : ${{ toJSON(needs) }}
218
+
212
219
- uses : actions/checkout@v5
213
220
with :
214
221
fetch-depth : 0
@@ -265,13 +272,13 @@ jobs:
265
272
- uses : chia-network/actions/activate-venv@main
266
273
267
274
- name : Add time out assert results to workflow summary
268
- if : always() && false
275
+ if : always() && steps.alls-green.outputs.success == 'true' && false
269
276
run : |
270
277
python -m chia._tests.process_junit --limit 50 --type time_out_assert --xml junit-results/junit.xml --markdown --link-prefix ${{ github.event.repository.html_url }}/blob/${{ github.sha }}/ --link-line-separator \#L >> "$GITHUB_STEP_SUMMARY"
271
278
python -m chia._tests.process_junit --type time_out_assert --xml junit-results/junit.xml --markdown --link-prefix ${{ github.event.repository.html_url }}/blob/${{ github.sha }}/ --link-line-separator \#L >> junit-results/time_out_assert.md
272
279
273
280
- name : Publish JUnit results
274
- if : always() && false
281
+ if : always() && steps.alls-green.outputs.success == 'true' && false
275
282
uses : actions/upload-artifact@v4
276
283
with :
277
284
name : junit-results
@@ -285,7 +292,7 @@ jobs:
285
292
coverage html --rcfile=.coveragerc --data-file=coverage-reports/.coverage --directory coverage-reports/html/
286
293
287
294
- uses : coverallsapp/github-action@v2
288
- if : always()
295
+ if : always() && steps.alls-green.outputs.success == 'true'
289
296
env :
290
297
COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
291
298
@@ -320,7 +327,7 @@ jobs:
320
327
fi
321
328
322
329
- name : Remove previous coverage report comment and label from PR
323
- if : github.base_ref != '' && always()
330
+ if : github.base_ref != '' && always() && steps.alls-green.outputs.success == 'true'
324
331
shell : bash
325
332
env :
326
333
COV_STATUS : ${{ env.COV_STATUS }}
@@ -341,7 +348,7 @@ jobs:
341
348
fi
342
349
343
350
- name : Add diff coverage report comment to PR
344
- if : github.base_ref != '' && always()
351
+ if : github.base_ref != '' && always() && steps.alls-green.outputs.success == 'true'
345
352
env :
346
353
BRANCH_NAME : ${{ github.sha }}
347
354
COV_STATUS : ${{ env.COV_STATUS }}
@@ -391,12 +398,12 @@ jobs:
391
398
fi
392
399
393
400
- name : Add diff coverage report to workflow summary
394
- if : (github.base_ref != '' || github.event.before != '') && always()
401
+ if : (github.base_ref != '' || github.event.before != '') && always() && steps.alls-green.outputs.success == 'true'
395
402
run : |
396
403
cat coverage-reports/diff-cover.md >> "$GITHUB_STEP_SUMMARY"
397
404
398
405
- name : Publish coverage reports
399
- if : always()
406
+ if : always() && steps.alls-green.outputs.success == 'true'
400
407
uses : actions/upload-artifact@v4
401
408
with :
402
409
name : coverage-reports
0 commit comments