Merge dev to main: Security improvements and comprehensive test infrastructure #39
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user