diff --git a/.github/workflows/query-ci.yml b/.github/workflows/query-ci.yml index 3e51153..c024107 100644 --- a/.github/workflows/query-ci.yml +++ b/.github/workflows/query-ci.yml @@ -26,7 +26,11 @@ jobs: - name: Run canonical package and deterministic-source controls env: PYTHONDONTWRITEBYTECODE: '1' - run: python -B -S -m unittest discover -s tests -p 'test_*.py' -v + shell: bash + run: | + set -euo pipefail + python -B -S -m unittest discover -s tests -p 'test_*.py' -v 2>&1 | tee "$RUNNER_TEMP/discovery.log" + grep -Eq '^Ran [1-9][0-9]* tests? in ' "$RUNNER_TEMP/discovery.log" || { echo "::error::unittest discovery collected 0 tests or returned no count"; exit 1; } - name: Verify portable candidate stubs against pinned public commits env: PYTHONDONTWRITEBYTECODE: '1'