ci(M02): enforce coverage gate on combined pytest+server coverage

Made-with: Cursor
This commit is contained in:
Michael Cahill 2026-03-08 15:48:46 -07:00
parent fbd17d1162
commit fa0575c929
2 changed files with 4 additions and 1 deletions

View file

@ -80,7 +80,7 @@ jobs:
- name: Run tests
run: |
wait-for-it --service 127.0.0.1:7860 -t 20
python -m pytest -vv --junitxml=test/results.xml --cov . --cov-fail-under=60 --cov-report=xml --verify-base-url test
python -m pytest -vv --junitxml=test/results.xml --cov . --cov-report=xml --verify-base-url test
- name: Kill test server
if: always()
run: curl -vv -XPOST http://127.0.0.1:7860/sdapi/v1/server-stop && sleep 10
@ -88,6 +88,7 @@ jobs:
run: |
python -m coverage combine .coverage*
python -m coverage report -i
python -m coverage report --fail-under=60 -i
python -m coverage html -i
- name: Upload main app output
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02

View file

@ -12,3 +12,5 @@ This file records Cursor tool calls performed during the milestone.
| 2026-03-08 | write | Create ci_fake_inference.py | modules/api/ci_fake_inference.py | done |
| 2026-03-08 | search_replace | Add CI guards to txt2img/img2img | modules/api/api.py | done |
| 2026-03-08 | write | Add CONTRIBUTING.md | CONTRIBUTING.md | done |
| 2026-03-08 | run | git checkout -b m02-api-ci-truthfulness, commit, push | Branch m02-api-ci-truthfulness | done |
| 2026-03-08 | search_replace | Move coverage gate to combined step | .github/workflows/run_tests.yaml | done |