Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc13d998

Browse files
EliahKaganByron
authored andcommitted
Test on free-threaded Python
See#2005. Right now, this does not limit by operating system, butthat is just to verify that there are no OS-specific 3.13t problemswe should know about right now; once that is verified, the macOSand Windows jobs will be removed (excluded) for the time being.The 3.13t jobs added here use `Quansight-Labs/setup-python`, not`actions/setup-python`. The latter also has the ability to use3.13t sinceactions/python-versions#319andactions/setup-python#973 (see alsoactions/setup-python#771), but no versiontag includes this feature yet. It can be used by using `@main` or`@...` where `...` is an OID. The former would risk pulling inother untested features we're no trying to test with, while thelatter would not be easy to upgrade automatically as what we havenow (we would be deliberately keeping a hash not at any tag that isalready not the latest hash on any branch). In contrast, the`Quansight-Labs/setup-python` fork adds this feature while stayingup to date with others. When `actions/setup-python` has a release(stable or prerelease) with this feature, we can switch to it.This could probably be done with less code duplication by using amatrix variable for the action to use. Instead, the "Set up Python"step is split in two, with opposite `if` conditions, so that eachis capable of being recognized and upgraded by Dependabot if a newmajor version is released (in case this ends up remaining in placelonger than expected).
1 parentdc7ba87 commitc13d998

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os-type:[ubuntu, macos, windows]
16-
python-version:["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
python-version:["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.13t"]
1717
exclude:
1818
-os-type:macos
1919
python-version:"3.7"# Not available for the ARM-based macOS runners.
@@ -40,11 +40,20 @@ jobs:
4040
fetch-depth:0
4141

4242
-name:Set up Python ${{ matrix.python-version }}
43+
if:|-
44+
!endsWith(matrix.python-version, 't')
4345
uses:actions/setup-python@v5
4446
with:
4547
python-version:${{ matrix.python-version }}
4648
allow-prereleases:${{ matrix.experimental }}
4749

50+
-name:Set up Python ${{ matrix.python-version }} (free-threaded)
51+
if:endsWith(matrix.python-version, 't')
52+
uses:Quansight-Labs/setup-python@v5
53+
with:
54+
python-version:${{ matrix.python-version }}
55+
allow-prereleases:${{ matrix.experimental }}
56+
4857
-name:Set up WSL (Windows)
4958
if:matrix.os-type == 'windows'
5059
uses:Vampire/setup-wsl@v5.0.0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp