ci: add pytest job timeout and per-test timeout to prevent silent CI failures
Some checks failed
Some checks failed
This commit is contained in:
@@ -41,6 +41,7 @@ jobs:
|
||||
# ---------------------------------------------------------------------------
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15
|
||||
@@ -74,7 +75,7 @@ jobs:
|
||||
run: uv pip install --system -r requirements.txt -r requirements-test.txt
|
||||
|
||||
- name: Run tests
|
||||
run: python -m pytest -v --tb=short
|
||||
run: python -m pytest -v --tb=short --timeout=120
|
||||
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user