-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8565 from hugovk/Quansight-Labs/setup-python
- Loading branch information
Showing
1 changed file
with
4 additions
and
11 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ jobs: | |
] | ||
python-version: [ | ||
"pypy3.10", | ||
"3.13t", | ||
"3.13", | ||
"3.12", | ||
"3.11", | ||
|
@@ -52,23 +53,22 @@ jobs: | |
- { 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 } | ||
- { python-version: "3.13t", disable-gil: true } | ||
# M1 only available for 3.10+ | ||
- { os: "macos-13", python-version: "3.9" } | ||
exclude: | ||
- { os: "macos-latest", python-version: "3.9" } | ||
|
||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} ${{ matrix.disable-gil && 'free-threaded' || '' }} | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
if: "${{ !matrix.disable-gil }}" | ||
uses: Quansight-Labs/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
|
@@ -77,13 +77,6 @@ jobs: | |
".ci/*.sh" | ||
"pyproject.toml" | ||
- name: Set up Python ${{ matrix.python-version }} (free-threaded) | ||
uses: deadsnakes/[email protected] | ||
if: "${{ matrix.disable-gil }}" | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
nogil: ${{ matrix.disable-gil }} | ||
|
||
- name: Set PYTHON_GIL | ||
if: "${{ matrix.disable-gil }}" | ||
run: | | ||
|