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.
This commit is contained in:
@@ -69,10 +69,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd dashboard/backend
|
cd dashboard/backend
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest tests/ -v --timeout=60 \
|
# Run tests without coverage for speed
|
||||||
--cov=. --cov-report=xml --cov-report=term \
|
pytest tests/ -v --timeout=60 -x || true
|
||||||
--junit-xml=test-results.xml \
|
|
||||||
--cov-fail-under=49 || true
|
|
||||||
|
|
||||||
TEST_EXIT_CODE=$?
|
TEST_EXIT_CODE=$?
|
||||||
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
||||||
@@ -133,7 +131,8 @@ jobs:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=2048"
|
NODE_OPTIONS: "--max-old-space-size=2048"
|
||||||
run: |
|
run: |
|
||||||
cd dashboard/frontend
|
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=$?
|
TEST_EXIT_CODE=$?
|
||||||
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user