Merge dev to main: Security improvements and comprehensive test infrastructure #39

Merged
jimmy merged 195 commits from dev into main 2026-04-08 01:42:27 +08:00
Showing only changes of commit 51c4cd1a4e - Show all commits
+4 -3
View File
@@ -27,16 +27,17 @@ jobs:
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt
pip install -r requirements-dev.txt pip install -r requirements-dev.txt
pip install pytest-timeout
- name: Run unit tests - name: Run unit tests
run: | 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 echo "UNIT_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true continue-on-error: true
- name: Run integration tests - name: Run integration tests
run: | 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 echo "INTEGRATION_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true continue-on-error: true
@@ -92,7 +93,7 @@ jobs:
- name: Run tests with coverage - name: Run tests with coverage
run: | 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 echo "FRONTEND_TEST_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
continue-on-error: true continue-on-error: true