test(ci): propagate coverage failures and require security regressions (#2669)

This commit is contained in:
huanghuoguoguo
2026-10-17 12:46:30 +08:00
committed by GitHub
parent 5641637d3d
commit ffa6a836b5
3 changed files with 30 additions and 37 deletions
+16
View File
@@ -48,6 +48,22 @@ jobs:
- name: Run unit + smoke tests
run: uv run pytest tests/unit_tests/ tests/smoke/ -q --tb=short
- name: Run required security regressions
run: |
uv run pytest tests/test_cwe94_debug_exec.py \
-q --tb=short -rs --junitxml=cwe94-results.xml
python scripts/assert-required-tests.py cwe94-results.xml \
--module tests.test_cwe94_debug_exec \
--name-prefix test_no_ --expected-tests 2
- name: Upload security regression results
if: always()
uses: actions/upload-artifact@v4
with:
name: cwe94-results-${{ matrix.python-version }}
path: cwe94-results.xml
if-no-files-found: ignore
- name: Test Summary
if: always()
run: |