From de46724892fc73e2f11afc0eb22e39aa7c35e873 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Wed, 22 Apr 2026 00:06:24 +0800 Subject: [PATCH] perf: remove coverage from CI tests for speed - 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. --- .gitea/workflows/deploy-dev.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy-dev.yml b/.gitea/workflows/deploy-dev.yml index 6c88547..7a8ba37 100644 --- a/.gitea/workflows/deploy-dev.yml +++ b/.gitea/workflows/deploy-dev.yml @@ -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