File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -329,8 +329,12 @@ jobs:
329
329
- name : Check test coverage for PR
330
330
if : ${{ matrix.mutation == 'true' && github.event.pull_request }}
331
331
run : |
332
- # check if executed have at most 50% survival rate
333
- cr-rate --estimate --confidence 99.9 --fail-over 50 session-vs-master.sqlite
332
+ # only check if we have executed tests (if no code changes, the
333
+ # cr-rate will fail)
334
+ if ! $( cr-report session-vs-master.sqlite | tail -n 3 | grep -q 'complete.*100.00%' ); then
335
+ # check if executed have at most 50% survival rate
336
+ cr-rate --estimate --confidence 99.9 --fail-over 50 session-vs-master.sqlite
337
+ fi
334
338
- name : instrumental test coverage on PR
335
339
if : ${{ contains(matrix.opt-deps, 'instrumental') && github.event.pull_request }}
336
340
env :
@@ -417,7 +421,8 @@ jobs:
417
421
key : sessions-${{ github.sha }}
418
422
- name : Install cosmic-ray
419
423
run : |
420
- pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
424
+ #pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
425
+ pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
421
426
pip install pytest-timeout
422
427
- name : Install dependencies
423
428
run : |
You can’t perform that action at this time.
0 commit comments