From eceed09ad261bb1b34b4dba2a72dba463f5dbfd7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 23 Jun 2022 00:24:39 +0200 Subject: [PATCH] Add Python 3.10.5 and remove end of life versions (#18766) --- .../building-and-testing-python.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/content/actions/automating-builds-and-tests/building-and-testing-python.md b/content/actions/automating-builds-and-tests/building-and-testing-python.md index 8728e85d85..19b883c4ce 100644 --- a/content/actions/automating-builds-and-tests/building-and-testing-python.md +++ b/content/actions/automating-builds-and-tests/building-and-testing-python.md @@ -57,7 +57,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9"] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - uses: {% data reusables.actions.action-checkout %} @@ -114,7 +114,7 @@ jobs: # You can use PyPy versions in python-version. # For example, {% ifversion actions-node16-action %}pypy-2.7 and pypy-3.8{% else %}pypy2 and pypy3{% endif %} matrix: - python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"] + python-version: ["2.7", "3.7", "3.8", "3.9", "3.10"] steps: - uses: {% data reusables.actions.action-checkout %} @@ -129,7 +129,7 @@ jobs: ### Using a specific Python version -You can configure a specific version of python. For example, 3.8. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest minor release of Python 3. +You can configure a specific version of python. For example, 3.9. Alternatively, you can use semantic version syntax to get the latest minor release. This example uses the latest minor release of Python 3. ```yaml{:copy} name: Python package @@ -173,12 +173,12 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.6", "3.7", "3.8", "3.9", {% ifversion actions-node16-action %}pypy-2.7, pypy-3.8{% else %}pypy2, pypy3{% endif %}] + python-version: ["3.7", "3.8", "3.9", "3.10", {% ifversion actions-node16-action %}pypy-2.7, pypy-3.8{% else %}pypy2, pypy3{% endif %}] exclude: - os: macos-latest - python-version: "3.6" + python-version: "3.7" - os: windows-latest - python-version: "3.6" + python-version: "3.7" ``` ### Using the default Python version @@ -238,7 +238,7 @@ steps: - uses: {% data reusables.actions.action-checkout %} - uses: {% data reusables.actions.action-setup-python %} with: - python-version: '3.9' + python-version: '3.10' cache: 'pip' - run: pip install -r requirements.txt - run: pip test @@ -315,7 +315,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.7", "3.8", "3.9"] + python: ["3.8", "3.9", "3.10"] steps: - uses: {% data reusables.actions.action-checkout %} @@ -347,7 +347,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9"] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - uses: {% data reusables.actions.action-checkout %}