From 822ce74a08b85bdab81c80b42a28fa2f2a1bccee Mon Sep 17 00:00:00 2001 From: Dylan Roy <249851642+d6g8k5htny-coder@users.noreply.github.com> Date: Sun, 11 Oct 2026 18:45:24 -0700 Subject: [PATCH] ci(C026): refuse zero-test discovery in both Python modes --- .github/workflows/c026-reciprocal.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c026-reciprocal.yml b/.github/workflows/c026-reciprocal.yml index 627c7acbb..569c1cec3 100644 --- a/.github/workflows/c026-reciprocal.yml +++ b/.github/workflows/c026-reciprocal.yml @@ -23,5 +23,8 @@ jobs: env: PYTHONDONTWRITEBYTECODE: '1' run: | - python -B -S -m unittest discover -s repairs/c026_reciprocal_20260927 -p 'test_*.py' -v - python -B -O -S -m unittest discover -s repairs/c026_reciprocal_20260927 -p 'test_*.py' -v + set -euo pipefail + python -B -S -m unittest discover -s repairs/c026_reciprocal_20260927 -p 'test_*.py' -v 2>&1 | tee "$RUNNER_TEMP/c026-normal.log" + grep -Eq '^Ran [1-9][0-9]* tests? in ' "$RUNNER_TEMP/c026-normal.log" || { echo "::error::C026 normal discovery collected 0 tests or returned no count"; exit 1; } + python -B -O -S -m unittest discover -s repairs/c026_reciprocal_20260927 -p 'test_*.py' -v 2>&1 | tee "$RUNNER_TEMP/c026-optimized.log" + grep -Eq '^Ran [1-9][0-9]* tests? in ' "$RUNNER_TEMP/c026-optimized.log" || { echo "::error::C026 optimized discovery collected 0 tests or returned no count"; exit 1; }