Add GitHub Actions CI: test suite, Python version matrix, and - #56
Merged
Merged
Conversation
… import bug fix Adds a pytest suite (import/smoke tests, txdelay/getparam sanity checks, and golden-master regression tests for simus/pfield with a dB-bucketed tolerance that tolerates BLAS-backend rounding noise without masking real regressions) plus a GitHub Actions workflow that installs the package and runs it across Python 3.9-3.13. Testing against the declared minimum Python version (3.9) surfaced a real bug: txdelay3.py used PEP 604 `X|Y` union type hints without deferred annotation evaluation, crashing `import pymust` on 3.9 and 3.8. Fixed by adding `from __future__ import annotations`, consistent with the rest of the codebase. requires-python is bumped to >=3.9 to match what's actually tested (NumPy 2.0+, needed by simus.py's np.concat usage, dropped 3.8 support). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
… import bug fix
Adds a pytest suite (import/smoke tests, txdelay/getparam sanity checks, and golden-master regression tests for simus/pfield with a dB-bucketed tolerance that tolerates BLAS-backend rounding noise without masking real regressions) plus a GitHub Actions workflow that installs the package and runs it across Python 3.9-3.13.