Skip to content

Commit

Permalink
Merge pull request #338 from tomato42/mutation-testing
Browse files Browse the repository at this point in the history
fix mutation testing in CI
  • Loading branch information
tomato42 authored Apr 11, 2024
2 parents be70016 + 0bdcf5e commit c6bb5e1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ jobs:
- name: Install mutation testing dependencies
if: ${{ matrix.mutation == 'true' }}
run: |
#pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Display installed python package versions
run: pip list
Expand Down Expand Up @@ -306,7 +305,9 @@ jobs:
cosmic_pid=$!
for i in $(seq 1 600); do
# wait for test execution at most 10 minutes
kill -s 0 $cosmic_pid || break
if ! kill -s 0 $cosmic_pid; then
break
fi
sleep 1
done
kill $cosmic_pid || true
Expand Down Expand Up @@ -418,8 +419,7 @@ jobs:
key: sessions-${{ github.sha }}
- name: Install cosmic-ray
run: |
#pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Install dependencies
run: |
Expand Down Expand Up @@ -495,8 +495,7 @@ jobs:
- name: Install build dependencies
run: |
pip install -r build-requirements.txt
#pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Run mutation testing
run: |
Expand All @@ -511,7 +510,7 @@ jobs:
echo $i
sleep 60
done
kill $cosmic_pid
kill -s 0 $cosmic_pid && kill $cosmic_pid
mkdir sessions-done/
cp session.sqlite sessions-done/session-${{ matrix.name }}-done.sqlite
- name: Report executed
Expand Down Expand Up @@ -648,8 +647,7 @@ jobs:
key: sessions-${{ github.sha }}-19-done
- name: Install cosmic-ray
run: |
#pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip3 install https://github.com/tomato42/cosmic-ray/archive/no-executed.zip
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Install dependencies
run: |
Expand Down

0 comments on commit c6bb5e1

Please sign in to comment.