Skip to content

Commit 9655b23

Browse files
committed
Add timeouts to unit tests
1 parent 60f1ec5 commit 9655b23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Run isort
3232
run: isort --check .
3333
- name: Run tests and collect coverage
34-
run: pytest --junitxml=junit/test-results.xml --cov=relay --cov=tests --cov-report=xml --cov-report=html
34+
run: pytest --timeout=300 --junitxml=junit/test-results.xml --cov=relay --cov=tests --cov-report=xml --cov-report=html
3535
- name: Upload pytest test results
3636
uses: actions/upload-artifact@v3
3737
with:

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ pytest>=6.2.5
1010
pytest-cov>=2.7.1
1111
pytest-helpers-namespace==2019.1.8
1212
pytest-mock
13+
pytest-timeout
1314
pytest-xdist
1415
responses

0 commit comments

Comments
 (0)