From fa0575c929b4064ff27c7b132d541177eb14e90c Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Sun, 8 Mar 2026 15:48:46 -0700 Subject: [PATCH] ci(M02): enforce coverage gate on combined pytest+server coverage Made-with: Cursor --- .github/workflows/run_tests.yaml | 3 ++- docs/milestones/M02/M02_toolcalls.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 10a19b9c6..da1288475 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -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 diff --git a/docs/milestones/M02/M02_toolcalls.md b/docs/milestones/M02/M02_toolcalls.md index 2382c2e68..6e582b1dc 100644 --- a/docs/milestones/M02/M02_toolcalls.md +++ b/docs/milestones/M02/M02_toolcalls.md @@ -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 |