From 7c46423c285021719f945e1f712fffea15affb41 Mon Sep 17 00:00:00 2001 From: Brian Toby Date: Mon, 2 Nov 2026 09:36:47 -0600 Subject: [PATCH 1/2] Add Python syntax check to smoke test --- .github/workflows/smoke_test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/smoke_test.yml b/.github/workflows/smoke_test.yml index 707696b3..98b4a20c 100644 --- a/.github/workflows/smoke_test.yml +++ b/.github/workflows/smoke_test.yml @@ -60,5 +60,8 @@ jobs: # run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }} run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install + - name: Check Python syntax + run: python -m compileall -q GSASII + - name: test run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} test From ce59cac4f76fc2a4b5e0661a8e9cb9b81bab9d0f Mon Sep 17 00:00:00 2001 From: Brian Toby Date: Mon, 2 Nov 2026 09:44:23 -0600 Subject: [PATCH 2/2] Run syntax check with the matrix pixi Python --- .github/workflows/smoke_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke_test.yml b/.github/workflows/smoke_test.yml index 98b4a20c..0b0ce873 100644 --- a/.github/workflows/smoke_test.yml +++ b/.github/workflows/smoke_test.yml @@ -60,8 +60,10 @@ jobs: # run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install${{ matrix.os.cmd_extra }} run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} install + # compile all modules with the matrix Python (pixi env) to catch syntax + # errors, e.g. 3.12-only syntax that fails on 3.10/3.11 - name: Check Python syntax - run: python -m compileall -q GSASII + run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} python -m compileall -q GSASII - name: test run: pixi run --manifest-path pixi/pixi.toml -e ${{ matrix.env }} test