Skip to content

Commit 6b9f7a8

Browse files
[patch] Add pytest timeout to prevent tests from hanging indefinitely
1 parent c3f2416 commit 6b9f7a8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
cat ${GITHUB_WORKSPACE}/src/mas/devops/__init__.py
4747
python -m pip install --upgrade pip
4848
pip install .[dev]
49-
python -m pytest
49+
pip install pytest-timeout
50+
python -m pytest --timeout=60 -v
5051
5152
- name: Lint with flake8
5253
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ venv/
1818

1919
# Other
2020
kubectl.exe
21+
/build
2122
/.vscode
2223
/site

0 commit comments

Comments
 (0)