From 366d4b9765b2429414fed03fac495478617cc6a7 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 15 Mar 2026 22:09:12 +0100 Subject: [PATCH] ci: add pytest job timeout and per-test timeout to prevent silent CI failures --- .gitea/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bef710f0..9ccd118d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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