Skip to content

ci: run the test suite on Windows - #61

Merged
sarseniy merged 1 commit into
mainfrom
ci/windows
Nov 12, 2026
Merged

sarseniy merged 1 commit into
mainfrom
ci/windows

Conversation

@sarseniy

@sarseniy sarseniy commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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.

 ci (pull_request)
   changes
   test               # ubuntu, 3.12–3.14
   test-macos         # macos, 3.13
+  test-windows       # windows, 3.13, extras all,perceval
   test-core-only
   test-missing-importorskip
   tests-passed
+    needs test-windows too

The steps of _test.yml are written for bash, and a Windows runner defaults to PowerShell, so the job now sets shell: bash. On Linux and macOS that adds only pipefail, and no step there uses a pipe.

Evidence

  • actionlint and pre-commit pass on both workflows.

  • The first Windows run of this pull request: all,perceval installs (211 packages, torch 2.14.1+cu126 among them) and the suite passes in 7 min 46 s, close to macOS.

    Runner Passed Skipped Job
    windows-latest 4462 214 7m46s
    macos-latest 4508 200 7m06s

    Windows runs fewer tests because PySCF and CUDA-Q do not install there, so their tests skip. Apart from Windows-only helpers, they are the only packages missing from its install, and the only test that checks the platform is one macOS-only qsim test.

  • The longest job is still test / pytest (3.13) at about 12 minutes, so the new job does not make CI take longer.

Merge Danger

Door: two-way

Blast Radius: CI

Once merged, a test that fails on Windows fails tests-passed and blocks the merge. torch comes from the CUDA index on Windows, as on Linux, so the install is large.

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-actions

Copy link
Copy Markdown

Docs preview: https://pr-61.eigenkit-docs.pages.dev

@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@sarseniy
sarseniy marked this pull request as ready for review November 12, 2026 16:38
@sarseniy
sarseniy requested a review from a team as a code owner November 12, 2026 16:38
@sarseniy
sarseniy merged commit 4e2470d into main Nov 12, 2026
18 checks passed
@sarseniy
sarseniy deleted the ci/windows branch November 12, 2026 16:39

This branch was successfully deployed

1 active deployment
docs-preview — 6e22809c Deployed Nov 12, 2026 by sarseniy via preview #84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant