test(ci): run Python client CI across a 3.9-3.13 version matrix - #1572
Merged
Merged
Conversation
python/pyproject.toml declares requires-python = ">=3.9" but .github/workflows/python.yml pinned a single interpreter (3.11), so four of the five supported versions never executed the test suite. Split the check job into lint (ruff + mypy, unchanged, single leg since both are already pinned to py39 semantics) and test (pytest, now matrixed over ['3.9', '3.11', '3.13'] with fail-fast: false so one version's failure does not mask the others). Narrowed the pyproject.toml classifiers to the three versions CI now actually exercises (3.9, 3.11, 3.13) so the published metadata and the tested matrix agree; requires-python stays >=3.9 unbounded since that constraint is unaffected. Validated locally with uv-managed interpreters (3.9.6, 3.11.10, 3.13.5): pip install -e "python[dev]" resolves cleanly on all three and pytest python/tests -m "not e2e" passes 43/43 on each; ruff check, ruff format --check, and mypy python/src also pass on 3.11. Refs #1115
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
python/pyproject.toml declares requires-python = ">=3.9" and classifiers for 3.9 through 3.13, but .github/workflows/python.yml pinned a single interpreter (3.11) with no version matrix, so four of the five supported versions never executed the test suite.
What changed
Test plan
Closes #1115