Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/e2e-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
python-version:
['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand All @@ -40,7 +41,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
python-version:
['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down Expand Up @@ -76,7 +78,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
python-version:
['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Install poetry
Expand All @@ -98,7 +101,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
python-version:
['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand All @@ -117,7 +121,8 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x']
python-version:
['3.9', 'pypy-3.9-v7.x', '3.10', 'pypy-3.10-v7.x', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Setup Python
Expand Down
171 changes: 154 additions & 17 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
macos-13,
ubuntu-latest
]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0, '3.13.2t']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -47,8 +47,9 @@ jobs:
- 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 }}"
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
Expand All @@ -72,7 +73,7 @@ jobs:
macos-13,
ubuntu-latest
]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0, '3.13.2t']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -93,8 +94,9 @@ jobs:
- 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 }}"
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
Expand All @@ -118,7 +120,7 @@ jobs:
macos-13,
ubuntu-latest
]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0, '3.13.2t']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -137,8 +139,9 @@ jobs:
- 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 }}"
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
Expand Down Expand Up @@ -196,6 +199,56 @@ jobs:
- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'

setup-versions-from-standard-pyproject-file-freethread:
name: Setup ${{ matrix.python }} ${{ matrix.os }} standard pyproject file freethread
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
[
macos-latest,
windows-latest,
ubuntu-20.04,
ubuntu-22.04,
macos-13,
ubuntu-latest
]
python: [3.13.0, 3.13.1, 3.13.2]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: build-version-file ${{ matrix.python }}
run: |
echo '[project]
requires-python = "${{ matrix.python }}"
' > pyproject.toml

- name: setup-python ${{ matrix.python }} freethread
id: setup-python-freethread
uses: ./
with:
python-version-file: pyproject.toml
freethreaded: true

- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python-freethread.outputs.python-path }}'
shell: bash

- name: Validate version
run: |
$pythonVersion = (python --version)
if ("Python ${{ matrix.python }}".replace("==", "") -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-from-poetry-pyproject-file:
name: Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -245,6 +298,57 @@ jobs:
- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'

setup-versions-from-poetry-pyproject-file-freethread:
name: Setup ${{ matrix.python }} ${{ matrix.os }} poetry pyproject file for freethread
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
[
macos-latest,
windows-latest,
ubuntu-20.04,
ubuntu-22.04,
macos-13,
ubuntu-latest
]
python: [3.13.0, 3.13.1, 3.13.2]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: build-version-file ${{ matrix.python }}
run: |
echo '[tool.poetry.dependencies]
python = "${{ matrix.python }}"
' > pyproject.toml

- name: setup-python ${{ matrix.python }} freethread
id: setup-python-freethread
uses: ./
with:
python-version-file: pyproject.toml
freethreaded: true

- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python-freethread.outputs.python-path }}'
shell: bash

- name: Validate version
run: |
$pythonVersion = (python --version)
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
shell: pwsh

- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'

setup-versions-from-tool-versions-file:
name: Setup ${{ matrix.python }} ${{ matrix.os }} .tool-versions file
runs-on: ${{ matrix.os }}
Expand All @@ -260,7 +364,7 @@ jobs:
macos-13,
ubuntu-latest
]
python: [3.13.0, 3.14-dev, pypy3.11-7.3.18, graalpy-24.1.2]
python: [3.13.2t, 3.13.0, 3.14-dev, pypy3.11-7.3.18, graalpy-24.1.2]
exclude:
- os: windows-latest
python: graalpy-24.1.2
Expand Down Expand Up @@ -327,6 +431,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest, macos-13]
python: [3.14-dev, 3.14t-dev]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -335,7 +440,7 @@ jobs:
id: setup-python
uses: ./
with:
python-version: '3.14-dev'
python-version: ${{ matrix.python }}

- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
Expand Down Expand Up @@ -376,6 +481,35 @@ jobs:

- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'
setup-prerelease-version-freethread:
name: Setup 3.14 ${{ matrix.os }} freethread
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest, macos-13]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: setup-python 3.14 freethread
id: setup-python-freethread
uses: ./
with:
python-version: '3.14t'
freethreaded: true
allow-prereleases: true

- name: Check python-path
run: ./__tests__/check-python-path.sh '${{ steps.setup-python-freethread.outputs.python-path }}'
shell: bash

- name: Validate version
run: ${{ startsWith(steps.setup-python-freethread.outputs.python-version, '3.14.') }}
shell: bash

- name: Run simple code
run: python -c 'import math; print(math.factorial(5))'

setup-versions-noenv:
name: Setup ${{ matrix.python }} ${{ matrix.os }} (noenv)
Expand All @@ -392,7 +526,7 @@ jobs:
macos-13,
ubuntu-latest
]
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.13t']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -416,7 +550,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.13t']
steps:
- uses: actions/checkout@v4
- name: Setup Python and check latest
Expand All @@ -427,8 +561,9 @@ jobs:
- name: Validate version
run: |
$pythonVersion = (python --version)
if ("$pythonVersion" -NotMatch "${{ matrix.python-version }}"){
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
Expand All @@ -451,12 +586,14 @@ jobs:
3.11
3.12
3.13
3.13t
check-latest: true
- name: Validate version
run: |
$pythonVersion = (python --version)
if ("$pythonVersion" -NotMatch "3.13"){
Write-Host "The current version is $pythonVersion; expected version is 3.13"
$expectedVersion = "${{ matrix.python-version }}".TrimEnd('t')
if ("$pythonVersion" -NotMatch $expectedVersion){
Write-Host "The current version is $pythonVersion; expected version is $expectedVersion"
exit 1
}
$pythonVersion
Expand Down
2 changes: 1 addition & 1 deletion .licenses/npm/@actions/cache.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .licenses/npm/@protobuf-ts/plugin-framework.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .licenses/npm/@protobuf-ts/plugin.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading