perf: remove coverage from CI tests for speed
Deploy Dashboard (Dev) / Backend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / Frontend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / Deploy to Dev (push) Has been cancelled

- Remove --cov flags (coverage calculation is slow)
- Add -x flag to stop on first failure
- Simplify frontend test command

This should make tests run much faster in CI.
This commit is contained in:
Gan, Jimmy
2026-04-22 00:06:24 +08:00
parent e56971524b
commit de46724892
+4 -5
View File
@@ -69,10 +69,8 @@ jobs:
run: |
cd dashboard/backend
. venv/bin/activate
pytest tests/ -v --timeout=60 \
--cov=. --cov-report=xml --cov-report=term \
--junit-xml=test-results.xml \
--cov-fail-under=49 || true
# Run tests without coverage for speed
pytest tests/ -v --timeout=60 -x || true
TEST_EXIT_CODE=$?
if [ $TEST_EXIT_CODE -ne 0 ]; then
@@ -133,7 +131,8 @@ jobs:
NODE_OPTIONS: "--max-old-space-size=2048"
run: |
cd dashboard/frontend
npm run test:coverage -- --reporter=verbose --run --pool=forks --poolOptions.forks.maxForks=2 || true
# Run tests without coverage for speed
npm run test -- --reporter=verbose --run -x || true
TEST_EXIT_CODE=$?
if [ $TEST_EXIT_CODE -ne 0 ]; then