Repository navigation
ci: run the test suite on Windows - #61
Merged
Merged
Conversation
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.
|
Docs preview: https://pr-61.eigenkit-docs.pages.dev |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The package declares itself OS independent, and its extras are written to install on Windows (the
chemistryextra leaves PySCF out there), but no CI job ran on Windows.The steps of
_test.ymlare written for bash, and a Windows runner defaults to PowerShell, so the job now setsshell: bash. On Linux and macOS that adds onlypipefail, and no step there uses a pipe.Evidence
actionlintand pre-commit pass on both workflows.The first Windows run of this pull request:
all,percevalinstalls (211 packages, torch2.14.1+cu126among them) and the suite passes in 7 min 46 s, close to macOS.windows-latestmacos-latestWindows 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-passedand blocks the merge. torch comes from the CUDA index on Windows, as on Linux, so the install is large.