mirror of
https://github.com/actions/setup-python.git
synced 2026-11-12 23:23:40 +03:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c61864c1ca |
No files matched your search
@@ -32,12 +32,14 @@ jobs:
|
||||
macos-latest
|
||||
]
|
||||
python-version:
|
||||
['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14', '3.15']
|
||||
['3.10', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -65,8 +67,7 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python-version:
|
||||
['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14', '3.15']
|
||||
python-version: ['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python-version: pypy-3.11-v7.x
|
||||
@@ -119,7 +120,7 @@ jobs:
|
||||
macos-latest
|
||||
]
|
||||
python-version:
|
||||
['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14', '3.15']
|
||||
['3.10', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python-version: pypy-3.11-v7.x
|
||||
@@ -127,6 +128,8 @@ jobs:
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Install poetry
|
||||
@@ -163,12 +166,14 @@ jobs:
|
||||
macos-latest
|
||||
]
|
||||
python-version:
|
||||
['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14', '3.15']
|
||||
['3.10', '3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: pypy-3.11-v7.x
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Setup Python
|
||||
@@ -196,8 +201,7 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python-version:
|
||||
['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14', '3.15']
|
||||
python-version: ['3.11', 'pypy-3.11-v7.x', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python-version: pypy-3.11-v7.x
|
||||
@@ -250,7 +254,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
|
||||
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Setup Python
|
||||
@@ -258,7 +265,7 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
pip-version: '26.2.2'
|
||||
pip-version: '25.0.1'
|
||||
- name: Install dependencies
|
||||
run: pip install numpy pandas requests
|
||||
|
||||
@@ -278,7 +285,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
|
||||
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Setup Python
|
||||
@@ -287,6 +297,6 @@ jobs:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
cache-dependency-path: __tests__/data/requirements.txt
|
||||
pip-version: '26.2.2'
|
||||
pip-version: '25.0.1'
|
||||
- name: Install dependencies
|
||||
run: pip install numpy pandas requests
|
||||
@@ -31,29 +31,27 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Run with setup-python 3.15.2
|
||||
- name: Run with setup-python 3.10.11
|
||||
if: matrix.operating-system != 'windows-11-arm'
|
||||
uses: ./
|
||||
with:
|
||||
python-version: 3.15.2
|
||||
- name: Verify 3.15.2
|
||||
run: python __tests__/verify-python.py 3.15.2
|
||||
python-version: 3.10.11
|
||||
- name: Verify 3.10.11
|
||||
if: matrix.operating-system != 'windows-11-arm'
|
||||
run: python __tests__/verify-python.py 3.10.11
|
||||
|
||||
- name: Run with setup-python 3.11.9
|
||||
if: matrix.operating-system != 'ubuntu-latest'
|
||||
uses: ./
|
||||
with:
|
||||
python-version: 3.11.9
|
||||
- name: Verify 3.11.9
|
||||
if: matrix.operating-system != 'ubuntu-latest'
|
||||
run: python __tests__/verify-python.py 3.11.9
|
||||
|
||||
- name: Run with setup-python 3.12.10
|
||||
if: matrix.operating-system != 'ubuntu-latest'
|
||||
uses: ./
|
||||
with:
|
||||
python-version: 3.12.10
|
||||
- name: Verify 3.12.10
|
||||
if: matrix.operating-system != 'ubuntu-latest'
|
||||
run: python __tests__/verify-python.py 3.12.10
|
||||
|
||||
- name: Run with setup-python 3.13.14
|
||||
|
||||
@@ -14,6 +14,43 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
setup-versions-from-manifest:
|
||||
name: Setup ${{ matrix.python }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
[
|
||||
ubuntu-22.04,
|
||||
ubuntu-latest,
|
||||
ubuntu-24.04-arm,
|
||||
windows-latest,
|
||||
windows-11-arm,
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.13.14t, 3.14.6t]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: setup-python ${{ matrix.python }}
|
||||
id: setup-python
|
||||
uses: ./
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Check python-path
|
||||
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
||||
shell: bash
|
||||
|
||||
- name: Verify Python version
|
||||
run: ${{ steps.setup-python.outputs.python-path }} -VVV
|
||||
|
||||
- name: Run simple code
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
|
||||
setup-versions-from-file:
|
||||
name: Setup ${{ matrix.python }} ${{ matrix.os }} version file
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -14,6 +14,53 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
setup-versions-from-manifest:
|
||||
name: Setup ${{ matrix.python }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
[
|
||||
ubuntu-22.04,
|
||||
ubuntu-latest,
|
||||
ubuntu-24.04-arm,
|
||||
windows-latest,
|
||||
windows-11-arm,
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.10.11, 3.11.9, 3.12.10, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: setup-python ${{ matrix.python }}
|
||||
id: setup-python
|
||||
uses: ./
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Check python-path
|
||||
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
||||
shell: bash
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("Python ${{ matrix.python }}" -ne "$pythonVersion"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python }}"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
shell: pwsh
|
||||
|
||||
- name: Run simple code
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
|
||||
setup-versions-via-mirror-input:
|
||||
name: 'Setup via explicit mirror input: ${{ matrix.os }}'
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -56,24 +103,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.17, 3.12.16, 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, 3.12.10, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python: '3.11.17'
|
||||
- os: windows-11-arm
|
||||
python: '3.12.16'
|
||||
- os: windows-latest
|
||||
python: '3.11.17'
|
||||
- os: windows-latest
|
||||
python: '3.12.16'
|
||||
- os: macos-15-intel
|
||||
python: '3.11.17'
|
||||
- os: macos-15-intel
|
||||
python: '3.12.16'
|
||||
- os: macos-latest
|
||||
python: '3.11.17'
|
||||
- os: macos-latest
|
||||
python: '3.12.16'
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -113,13 +146,17 @@ jobs:
|
||||
os:
|
||||
[
|
||||
ubuntu-22.04,
|
||||
ubuntu-latest,
|
||||
ubuntu-24.04-arm,
|
||||
windows-latest,
|
||||
windows-11-arm,
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.9, 3.12.10, 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, 3.12.10, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -157,13 +194,17 @@ jobs:
|
||||
os:
|
||||
[
|
||||
ubuntu-22.04,
|
||||
ubuntu-latest,
|
||||
ubuntu-24.04-arm,
|
||||
windows-latest,
|
||||
windows-11-arm,
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.9, '==3.12.10', 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, '==3.12.10', 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -213,12 +254,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.9, 3.12.10, 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, 3.12.10, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: ubuntu-latest
|
||||
python: '3.11.9'
|
||||
- os: ubuntu-latest
|
||||
python: '3.12.10'
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -268,7 +307,7 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [pypy3.11-7.3.18, graalpy-24.1.2, 3.13.14, 3.15.2]
|
||||
python: [pypy3.11-7.3.18, graalpy-24.1.2, 3.13.14, 3.15-dev]
|
||||
exclude:
|
||||
- os: windows-latest
|
||||
python: graalpy-24.1.2
|
||||
@@ -306,10 +345,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.9, 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: ubuntu-latest
|
||||
python: '3.11.9'
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -359,10 +398,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: [3.11.9, 3.13.14, 3.14.6, 3.15.2]
|
||||
python: [3.10.11, 3.11.9, 3.13.14, 3.14.6]
|
||||
exclude:
|
||||
- os: ubuntu-latest
|
||||
python: '3.11.9'
|
||||
- os: windows-11-arm
|
||||
python: 3.10.11
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -397,7 +436,7 @@ jobs:
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
|
||||
setup-pre-release-version-from-manifest:
|
||||
name: Setup 3.16.0-alpha.1 ${{ matrix.os }}
|
||||
name: Setup 3.15.0-beta.3 ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -416,11 +455,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: setup-python 3.16.0-alpha.1
|
||||
- name: setup-python 3.15.0-beta.3
|
||||
id: setup-python
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '3.16.0-alpha.1'
|
||||
python-version: '3.15.0-beta.3'
|
||||
|
||||
- name: Check python-path
|
||||
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
|
||||
@@ -429,7 +468,7 @@ jobs:
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("Python 3.16.0a1" -ne "$pythonVersion"){
|
||||
if ("Python 3.15.0b3" -ne "$pythonVersion"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.15.0b3"
|
||||
exit 1
|
||||
}
|
||||
@@ -477,7 +516,7 @@ jobs:
|
||||
run: python -c 'import math; print(math.factorial(5))'
|
||||
|
||||
setup-prerelease-version:
|
||||
name: Setup 3.16 ${{ matrix.os }}
|
||||
name: Setup 3.15 ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -496,11 +535,11 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: setup-python 3.16
|
||||
- name: setup-python 3.15
|
||||
id: setup-python
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '3.16'
|
||||
python-version: '3.15'
|
||||
allow-prereleases: true
|
||||
|
||||
- name: Check python-path
|
||||
@@ -508,7 +547,7 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Validate version
|
||||
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.16.') }}
|
||||
run: ${{ startsWith(steps.setup-python.outputs.python-version, '3.15.') }}
|
||||
shell: bash
|
||||
|
||||
- name: Run simple code
|
||||
@@ -530,7 +569,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python: ['3.11', '3.12', '3.13', '3.14', '3.15']
|
||||
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python: '3.10'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -563,7 +605,10 @@ jobs:
|
||||
macos-15-intel,
|
||||
macos-latest
|
||||
]
|
||||
python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
|
||||
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
||||
exclude:
|
||||
- os: windows-11-arm
|
||||
python-version: '3.10'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Setup Python and check latest
|
||||
@@ -606,13 +651,12 @@ jobs:
|
||||
3.12
|
||||
3.13
|
||||
3.14
|
||||
3.15
|
||||
check-latest: true
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("$pythonVersion" -NotMatch "3.15"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.15"
|
||||
if ("$pythonVersion" -NotMatch "3.14"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.14"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
certifi==2024.7.4
|
||||
certifi==2026.10.19
|
||||
chardet==3.0.4
|
||||
docutils==0.16
|
||||
idna==3.15
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
altgraph==0.17.2
|
||||
|
||||
certifi==2024.7.4
|
||||
certifi==2026.10.19
|
||||
|
||||
chardet==3.0.4
|
||||
|
||||
|
||||
@@ -161,8 +161,8 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
- 'pypy3.11' # the latest available version of PyPy that supports Python 3.10
|
||||
- 'pypy3.11-v7.3.23' # Python 3.10 and PyPy 7.3.17
|
||||
- 'pypy3.10' # the latest available version of PyPy that supports Python 3.10
|
||||
- 'pypy3.10-v7.3.17' # Python 3.10 and PyPy 7.3.17
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
@@ -260,11 +260,12 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: ['3.11','3.14', 'pypy3.9']
|
||||
python-version: ['3.9', '3.10', '3.11', 'pypy3.9']
|
||||
exclude:
|
||||
- os: ubuntu-latest
|
||||
python-version: '3.11'
|
||||
|
||||
- os: macos-latest
|
||||
python-version: '3.9'
|
||||
- os: windows-latest
|
||||
python-version: '3.9'
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- name: Set up Python
|
||||
|
||||
Reference in new issue
Block a user