Skip to content

Commit

Permalink
add hard timeout for test mutation test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Jan 14, 2024
1 parent e16173b commit 09f0d10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ jobs:
if: ${{ matrix.mutation == 'true' }}
run: |
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
- name: Test native speed
Expand Down Expand Up @@ -411,6 +412,7 @@ jobs:
- name: Install cosmic-ray
run: |
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Install dependencies
run: |
sudo apt-get install -y sqlite3
Expand Down Expand Up @@ -486,6 +488,7 @@ jobs:
run: |
pip install -r build-requirements.txt
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Run mutation testing
run: |
cp sessions/session-${{ matrix.name }}.sqlite session.sqlite
Expand Down Expand Up @@ -633,6 +636,7 @@ jobs:
- name: Install cosmic-ray
run: |
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
pip install pytest-timeout
- name: Install dependencies
run: |
sudo apt-get install -y sqlite3
Expand Down
2 changes: 1 addition & 1 deletion cosmic-ray-12way.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module-path = "src"
timeout = 20.0
excluded-modules = ['src/ecdsa/_sha3.py', 'src/ecdsa/_version.py', 'src/ecdsa/test*']
test-command = "pytest -x --fast -m 'not slow' src/"
test-command = "pytest --timeout=30 -x --fast -m 'not slow' src/"

[cosmic-ray.distributor]
name = "http"
Expand Down
2 changes: 1 addition & 1 deletion cosmic-ray.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module-path = "src"
timeout = 20.0
excluded-modules = ['src/ecdsa/_sha3.py', 'src/ecdsa/_version.py', 'src/ecdsa/test*']
test-command = "pytest -x --fast -m 'not slow' src/"
test-command = "pytest --timeout 30 -x --fast -m 'not slow' src/"

[cosmic-ray.distributor]
name = "local"
Expand Down

0 comments on commit 09f0d10

Please sign in to comment.