Repository navigation
Update Python tutorial matrix examples for Ubuntu 26.04 runners - #47080
aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Warning This pull request was closed automatically. Please don't raise pull requests against an existing issue that another user has raised until it's been marked with a |
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
There was a problem hiding this comment.
🔵 Needs a closer look
Approval should wait for maintainer or SME confirmation because the four OS/version matrices were not executed and depend on changing runner, manifest, and Python 3.14 availability and error wording.
No open issues 🎉
What changed in this PR
Updates the Python build-and-test tutorial to keep its matrix examples compatible with Ubuntu 26.04 runners by replacing unavailable Python 3.9 entries with Python 3.14 and refreshing the setup-python error guidance.
Changes:
- Replaces Python 3.9 with Python 3.14 in four workflow matrix examples.
- Updates the unavailable-version error example for Ubuntu 26.04 and available Python versions.
| File | Description |
|---|---|
| content/actions/tutorials/build-and-test-code/python.md | Updates Python version matrices and refreshes the setup-python unavailable-version error guidance. |
Review effort: Lite
Why:
Closes: #46993
What's being changed (if available, include any code snippets, screenshots, or gifs):
Four examples in the "Building and testing Python" tutorial listed
3.9in a matrix running onubuntu-latest. Becauseubuntu-latestis moving to Ubuntu 26.04 and theactions/python-versionsmanifest has no 3.9 build for that image, those jobs fail at thesetup-pythonstep and, with defaultfail-fast, cancel the rest of the matrix.This removes
3.9from the four version lists and adds3.14:["pypy3.10", "3.10", "3.11", "3.12", "3.13", "3.14"]["3.11", "3.13", "3.14", "pypy3.10"](the twoexcludeentries are unchanged)["3.11", "3.13", "3.14"]["3.10", "3.11", "3.12", "3.13", "3.14"]It also updates the stale sample error (
##[error]Version 3.7 with arch x64 not found, "includes the available versions") to the message format emitted by currentsetup-pythonand says the message links to the list of available versions.Verification
npm ci --prefer-offline --no-audit --no-fundin the isolated worktree: succeeded (added 1044 packages), withEBADENGINEwarnings because this machine has Node v22.23.2 while the repository requires Node^26.npm run lint-content -- --paths content/actions/tutorials/build-and-test-code/python.md: failed under Node v22 withTypeError: RegExp.escape is not a function.npx -y node@26 ./node_modules/tsx/dist/cli.mjs src/content-linter/scripts/lint-content.ts --paths content/actions/tutorials/build-and-test-code/python.md→Markdownlint finished in 108.8 s/No errors found.actions/setup-pythonv5src/find-python.tsand the available-version claim againstactions/python-versionsversions-manifest.json.Limitations
ubuntu-latest,macos-latest, andwindows-latestwith the updated lists.git pushto the fork fails with HTTP 408 because the fork'smainis 1161 commits behindupstream/main; the branch and its single-file commit were created directly on the fork with the GitHub REST API. The content is identical to the local commit.AI assistance disclosure
This change and PR body were prepared with AI assistance. The issue, the affected tutorial,
setup-pythonsource, and the versions manifest were checked before submission.Check off the following: