Repository navigation
ci: 👷 Test every supported Python version and recommend 3.14 - #252
Open
aka-khannaji wants to merge 1 commit into
Open
aka-khannaji wants to merge 1 commit into
aka-khannaji wants to merge 1 commit into
Conversation
- add the supported-version policy and its yearly review to HOWTOCONTRIBUTE.md, and link it from doc/ARCHITECTURE.md (ShisatoYano#189) - run the Linux, macOS and Windows test matrices on Python 3.11-3.15 - move the recommended version to 3.14 in the README, Dockerfile, book build and examples-gallery workflows Closes ShisatoYano#189
This branch has not been 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
Defines a Python version policy and applies it, as described in #189. CI now
tests every supported version (3.11-3.15) on Linux, macOS and Windows, and the
recommended version moves to 3.14.
Closes #189
How I checked it works
pytest -l --durations=0on Python 3.15.2, the only interpreter installedhere: 130 passed, 1 warning in 532.28s.
['3.11', '3.12', '3.13', '3.14', '3.15']on Linux, macOS and Windows.matplotlib 3.11.2 publish cp315 wheels for Windows amd64, macOS arm64 and
manylinux x86_64/aarch64, and CasADi 3.8.2 publishes
cp311-abi3wheels, so3.15 installs the requirements. Python 3.11 has no wheels for those NumPy and
SciPy releases; pip resolves the newest releases that still support it, which
the policy states explicitly.
found none, so 3.11 should run the suite as-is.
3.13: the only remaining occurrences are inside the new CImatrices.
Not run locally:
entries are exercised for the first time by this PR's CI.
sphinx-build -Wstops while drawingdoc/optimal_control/figures/mppi_samples.pywithalpha (1.0000000000000002) is outside 0-1 range. That line computes(0.9 * w) / weights.max(), which rounds just above 1 on this machine; theBookworkflow is green on main and this PR does not touch that file, so Ileft it alone. The
Bookjob on this PR builds the changed page.Images
Docs, CI and configuration only: no change under
src/, so there is nothing toshow.
Book
The only book change is the sentence in
doc/ARCHITECTURE.mdthat points at thenew policy.
Book.ymlalso moves to 3.14: the issue named the gallery workflowbut not this one, and leaving the book build on 3.13 would contradict the
recommended-version rule.