From 3ffd7fd9263463c161e0162cc11987dbb577bed4 Mon Sep 17 00:00:00 2001 From: aarushkha Date: Tue, 24 Nov 2026 16:04:28 +0530 Subject: [PATCH] CI: run the scripts' unit tests (scripts/test_*.py) CI ran only scripts/test.ps1 (cargo build and cargo test), so nothing ran scripts/test_pr_check.py: a PR that broke scripts/pr_check.py still got a green CI, and the PR checks workflow runs main's checker, not the PR's. One step now runs every scripts/test_*.py with unittest discovery, before the Rust build so it fails in seconds. Fixes #1000 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc905cb1b..0f9ba83b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,11 @@ jobs: steps: - uses: actions/checkout@v4 + # the unit tests of the scripts (scripts/test_*.py, e.g. the PR checker's): seconds, so + # before the build. The PR checks workflow runs main's checker, never a PR's copy. + - name: Script tests (Python) + run: python -B -m unittest discover -s scripts -p 'test_*.py' -v + - name: Rust (stable, MSVC) run: | rustup toolchain install stable --profile minimal