diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index fab3ece..3ec8c68 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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