From 94fa47bc61bb7b3247970d53a421491accae77ed Mon Sep 17 00:00:00 2001 From: ChalanaGimhanaX Date: Tue, 24 Nov 2026 15:50:26 +0530 Subject: [PATCH] CI: run scripts/test_*.py before the Rust build (#1000) .github/workflows/ci.yml previously ran only scripts/test.ps1, so scripts/test_pr_check.py never executed in CI (and PR checks runs main's copy of scripts/pr_check.py via pull_request_target). Add a Script tests step right after checkout running `python -B -m unittest discover -s scripts -p 'test_*.py' -v` so broken script tests fail in ~1 second before installing Rust or building the workspace, and any future scripts/test_*.py files are picked up automatically. Fixes #1000 Assisted-by: Antigravity (Gemini 4 Neon) --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc905cb1b..2043fc945 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,10 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Script tests + shell: pwsh + run: python -B -m unittest discover -s scripts -p 'test_*.py' -v + - name: Rust (stable, MSVC) run: | rustup toolchain install stable --profile minimal