Browse Source

Added timeouts to Github CI runner
- Backend tests: 10 min (step-level)
- Frontend tests: 10 min (step-level)
- Docker tests: 20 min (job-level, since it has multiple build/test steps)

maziggy 4 months ago
parent
commit
0d1056ded4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      .github/workflows/ci.yml

+ 3 - 0
.github/workflows/ci.yml

@@ -67,6 +67,7 @@ jobs:
           pip install pytest pytest-asyncio pytest-cov
 
       - name: Run tests
+        timeout-minutes: 10
         run: |
           cd backend
           python -m pytest tests/ -v --tb=short
@@ -136,6 +137,7 @@ jobs:
         run: npm ci
 
       - name: Run tests
+        timeout-minutes: 10
         working-directory: frontend
         run: npm run test:run
 
@@ -168,6 +170,7 @@ jobs:
   docker-test:
     name: Docker Build
     runs-on: ubuntu-latest
+    timeout-minutes: 20
     needs: [backend-tests, frontend-build]
     steps:
       - uses: actions/checkout@v4