Skip to content

Commit 09f0d10

Browse files
committed
add hard timeout for test mutation test suite
1 parent e16173b commit 09f0d10

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ jobs:
269269
if: ${{ matrix.mutation == 'true' }}
270270
run: |
271271
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
272+
pip install pytest-timeout
272273
- name: Display installed python package versions
273274
run: pip list
274275
- name: Test native speed
@@ -411,6 +412,7 @@ jobs:
411412
- name: Install cosmic-ray
412413
run: |
413414
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
415+
pip install pytest-timeout
414416
- name: Install dependencies
415417
run: |
416418
sudo apt-get install -y sqlite3
@@ -486,6 +488,7 @@ jobs:
486488
run: |
487489
pip install -r build-requirements.txt
488490
pip install https://github.com/sixty-north/cosmic-ray/archive/master.zip
491+
pip install pytest-timeout
489492
- name: Run mutation testing
490493
run: |
491494
cp sessions/session-${{ matrix.name }}.sqlite session.sqlite
@@ -633,6 +636,7 @@ jobs:
633636
- name: Install cosmic-ray
634637
run: |
635638
pip3 install https://github.com/sixty-north/cosmic-ray/archive/master.zip
639+
pip install pytest-timeout
636640
- name: Install dependencies
637641
run: |
638642
sudo apt-get install -y sqlite3

cosmic-ray-12way.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module-path = "src"
33
timeout = 20.0
44
excluded-modules = ['src/ecdsa/_sha3.py', 'src/ecdsa/_version.py', 'src/ecdsa/test*']
5-
test-command = "pytest -x --fast -m 'not slow' src/"
5+
test-command = "pytest --timeout=30 -x --fast -m 'not slow' src/"
66

77
[cosmic-ray.distributor]
88
name = "http"

cosmic-ray.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module-path = "src"
33
timeout = 20.0
44
excluded-modules = ['src/ecdsa/_sha3.py', 'src/ecdsa/_version.py', 'src/ecdsa/test*']
5-
test-command = "pytest -x --fast -m 'not slow' src/"
5+
test-command = "pytest --timeout 30 -x --fast -m 'not slow' src/"
66

77
[cosmic-ray.distributor]
88
name = "local"

0 commit comments

Comments
 (0)