Skip to content

Commit c6bb5e1

Browse files
authored
Merge pull request #338 from tomato42/mutation-testing
fix mutation testing in CI
2 parents be70016 + 0bdcf5e commit c6bb5e1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ jobs:
268268
- name: Install mutation testing dependencies
269269
if: ${{ matrix.mutation == 'true' }}
270270
run: |
271-
#pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
272-
pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
271+
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
273272
pip install pytest-timeout
274273
- name: Display installed python package versions
275274
run: pip list
@@ -306,7 +305,9 @@ jobs:
306305
cosmic_pid=$!
307306
for i in $(seq 1 600); do
308307
# wait for test execution at most 10 minutes
309-
kill -s 0 $cosmic_pid || break
308+
if ! kill -s 0 $cosmic_pid; then
309+
break
310+
fi
310311
sleep 1
311312
done
312313
kill $cosmic_pid || true
@@ -418,8 +419,7 @@ jobs:
418419
key: sessions-${{ github.sha }}
419420
- name: Install cosmic-ray
420421
run: |
421-
#pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
422-
pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
422+
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
423423
pip install pytest-timeout
424424
- name: Install dependencies
425425
run: |
@@ -495,8 +495,7 @@ jobs:
495495
- name: Install build dependencies
496496
run: |
497497
pip install -r build-requirements.txt
498-
#pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
499-
pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
498+
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
500499
pip install pytest-timeout
501500
- name: Run mutation testing
502501
run: |
@@ -511,7 +510,7 @@ jobs:
511510
echo $i
512511
sleep 60
513512
done
514-
kill $cosmic_pid
513+
kill -s 0 $cosmic_pid && kill $cosmic_pid
515514
mkdir sessions-done/
516515
cp session.sqlite sessions-done/session-${{ matrix.name }}-done.sqlite
517516
- name: Report executed
@@ -648,8 +647,7 @@ jobs:
648647
key: sessions-${{ github.sha }}-19-done
649648
- name: Install cosmic-ray
650649
run: |
651-
#pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
652-
pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
650+
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
653651
pip install pytest-timeout
654652
- name: Install dependencies
655653
run: |

0 commit comments

Comments
 (0)