test: disable coverage and add timeouts to identify slow/hanging tests
Run Tests / Backend Tests (push) Failing after 1m41s
Run Tests / Frontend Tests (push) Failing after 44s
Run Tests / Test Summary (push) Failing after 16m47s

This commit is contained in:
Gan, Jimmy
2026-03-31 13:45:44 +08:00
parent 3169185999
commit 51c4cd1a4e
+4 -3
View File
@@ -27,16 +27,17 @@ jobs:
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install pytest-timeout
- name: Run unit tests
run: |
pytest tests/unit/ -v --cov=. --cov-report=term --cov-report=html --cov-report=xml 2>&1 | tee unit-test-output.txt
pytest tests/unit/ -v --timeout=30 -x 2>&1 | tee unit-test-output.txt
echo "UNIT_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true
- name: Run integration tests
run: |
pytest tests/integration/ -v --cov=. --cov-append --cov-report=term --cov-report=html --cov-report=xml 2>&1 | tee integration-test-output.txt
pytest tests/integration/ -v --timeout=30 -x 2>&1 | tee integration-test-output.txt
echo "INTEGRATION_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true
@@ -92,7 +93,7 @@ jobs:
- name: Run tests with coverage
run: |
npm run test:coverage 2>&1 | tee test-output.txt
npm run test:coverage -- --reporter=verbose --run 2>&1 | tee test-output.txt
echo "FRONTEND_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true