From 2b48726b62d801f9218b3a9569c9a705ba6cee1c Mon Sep 17 00:00:00 2001 From: ANIRUDDHA ADAK Date: Thu, 26 Nov 2026 21:01:07 +0530 Subject: [PATCH] Update Python matrix examples for current runner images --- .../actions/tutorials/build-and-test-code/python.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/actions/tutorials/build-and-test-code/python.md b/content/actions/tutorials/build-and-test-code/python.md index 12a1a48e5741..5dd59d70c8bc 100644 --- a/content/actions/tutorials/build-and-test-code/python.md +++ b/content/actions/tutorials/build-and-test-code/python.md @@ -140,7 +140,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["pypy3.10", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: {% data reusables.actions.action-checkout %} @@ -184,7 +184,7 @@ jobs: ### Excluding a version -If you specify a version of Python that is not available, `setup-python` fails with an error such as: `##[error]Version 3.7 with arch x64 not found`. The error message includes the available versions. +If you specify a version of Python that is not available, `setup-python` fails with an error such as `The version '3.9' with architecture 'x64' was not found for Ubuntu 26.04.` The error message includes a link to the list of available versions. You can also use the `exclude` keyword in your workflow if there is a configuration of Python that you do not wish to run. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstrategy). @@ -200,7 +200,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.11", "3.13", "pypy3.10"] + python-version: ["3.11", "3.13", "3.14", "pypy3.10"] exclude: - os: macos-latest python-version: "3.11" @@ -342,7 +342,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.9", "3.11", "3.13"] + python: ["3.11", "3.13", "3.14"] steps: - uses: {% data reusables.actions.action-checkout %} @@ -374,7 +374,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: {% data reusables.actions.action-checkout %}