Skip to content

Add target Python version to matrix axes feeding setup-python - #238

Merged
timtebeek merged 1 commit into
mainfrom
tim/matrix-versions-python-upgrade
Oct 22, 2026
Merged

timtebeek merged 1 commit into
mainfrom
tim/matrix-versions-python-upgrade

Conversation

@timtebeek

Copy link
Copy Markdown
Member

SetupPythonUpgradePythonVersion used to skip python-version: ${{ matrix.<axis> }} entirely. It now appends the target version to that job's strategy.matrix.<axis> list when no value already reaches it. Lists that already have the target or something newer are left alone, as are ranges like 3.x that allow it, axes whose include supplies it, and matrices built from expressions. Older versions stay in the list, so existing coverage is kept. The append reuses rewrite-yaml's AppendToSequenceVisitor for flow and block lists and their formatting.

@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 22, 2026
@timtebeek
timtebeek merged commit 9a8e09c into main Oct 22, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/matrix-versions-python-upgrade branch October 22, 2026 20:59
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant