mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user