-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test 3.13 free-threaded build on CI #8200
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d4f1d25
Test 3.13 free-threaded build on CI
hugovk e76c31b
Refactor to single line for readability
hugovk 701539d
Add PYTHON_GIL=0 env var to keep GIL disabled
hugovk 2d2889e
Install nightly NumPy for free-threaded
hugovk dcd8332
Include 'free-threading' in job name
hugovk 41eb218
Check GIL, rather than Python version
radarhere 77e752f
Check GIL, rather than Python version (#124)
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,17 +50,14 @@ jobs: | |
"3.9", | ||
] | ||
include: | ||
- python-version: "3.11" | ||
PYTHONOPTIMIZE: 1 | ||
REVERSE: "--reverse" | ||
- python-version: "3.10" | ||
PYTHONOPTIMIZE: 2 | ||
- { python-version: "3.11", PYTHONOPTIMIZE: 1, REVERSE: "--reverse" } | ||
- { python-version: "3.10", PYTHONOPTIMIZE: 2 } | ||
# Free-threaded | ||
- { os: "ubuntu-latest", python-version: "3.13-dev", disable-gil: true } | ||
# M1 only available for 3.10+ | ||
- os: "macos-13" | ||
python-version: "3.9" | ||
- { os: "macos-13", python-version: "3.9" } | ||
exclude: | ||
- os: "macos-14" | ||
python-version: "3.9" | ||
- { os: "macos-14", python-version: "3.9" } | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | ||
|
@@ -70,6 +67,7 @@ jobs: | |
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
if: "!endsWith(matrix.python-version, '-dev')" | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
|
@@ -78,6 +76,18 @@ jobs: | |
".ci/*.sh" | ||
"pyproject.toml" | ||
|
||
- name: Set up Python ${{ matrix.python-version }} (free-threaded) | ||
uses: deadsnakes/[email protected] | ||
if: endsWith(matrix.python-version, '-dev') | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
nogil: ${{ matrix.disable-gil }} | ||
|
||
- name: Set PYTHON_GIL | ||
if: "${{ matrix.disable-gil }}" | ||
run: | | ||
echo "PYTHON_GIL=0" >> $GITHUB_ENV | ||
|
||
- name: Build system information | ||
run: python3 .github/workflows/system-info.py | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include
free-threading
in the name for the free-threaded run?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added: