From 6e22809cad2b40243351f48794fcccafc62ab295 Mon Sep 17 00:00:00 2001 From: Arseniy Senokosov <70952998+sarseniy@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:31:08 +0200 Subject: [PATCH] ci: run the test suite on Windows The package declares itself OS independent, and its extras are written to install on Windows (the chemistry extra leaves PySCF out there), but no CI job ran on Windows. test-windows runs the full suite with all extras on one Python version, as test-macos does, and tests-passed requires it. The reusable test workflow now runs its steps in bash, since they are written for it and a Windows runner defaults to PowerShell. --- .github/workflows/_test.yml | 5 +++++ .github/workflows/ci.yml | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index 894b9ef..723484b 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -42,6 +42,11 @@ jobs: pytest: runs-on: ${{ inputs.runs-on }} + # The steps are written for bash, and a Windows runner defaults to PowerShell. + defaults: + run: + shell: bash + strategy: fail-fast: false matrix: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 854344f..ccb8398 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,6 +77,17 @@ jobs: extras: "all,perceval" runs-on: macos-latest + test-windows: + # The full suite on Windows, which the package supports: there the + # `chemistry` extra leaves PySCF out. One Python version, as on macOS. + needs: changes + if: needs.changes.outputs.code == 'true' + uses: ./.github/workflows/_test.yml + with: + python-versions: '["3.13"]' + extras: "all,perceval" + runs-on: windows-latest + test-core-only: # The numpy core must install, import, and run with NO optional extras # (no torch / pennylane / qiskit / ...). Enforces the import-linter @@ -117,7 +128,7 @@ jobs: # test job passed or was turned off by `changes`. `always()`, not # `!cancelled()`: a cancelled run must fail this check, not skip it, # because a skipped check counts as passed. - needs: [changes, test, test-macos, test-core-only, test-missing-importorskip] + needs: [changes, test, test-macos, test-windows, test-core-only, test-missing-importorskip] if: always() runs-on: ubuntu-latest steps: