Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Test with free-threaded Python 3.13 #1148

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ env:

jobs:
tests:
name: "Test ${{ matrix.python-version }} ${{ matrix.nightly && '(nightly) ' || '' }}/ ${{ matrix.os }}"
name: "Test ${{ matrix.python-version }} ${{ matrix.nightly && '(nightly) ' || '' }}${{ matrix.nogil && 'No GIL ' || '' }}/ ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental || false }}
env:
Expand Down Expand Up @@ -78,14 +78,19 @@ jobs:
os: "macos-latest"
session: "tests"

- python-version: "3.13"
os: "ubuntu-latest"
session: "tests"
nogil: true

steps:
- name: Check out the repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
fetch-tags: true

- name: Setup Python ${{ matrix.python-version }}
if: "${{ !matrix.nightly }}"
if: "${{ !matrix.nightly && !matrix.nogil }}"
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -97,10 +102,11 @@ jobs:
.github/workflows/constraint.txt

- name: Setup Python ${{ matrix.python-version }} (nightly)
if: "${{ matrix.nightly }}"
if: "${{ matrix.nightly || matrix.nogil }}"
uses: deadsnakes/action@244dbe68f25c7b218e462ef9e155817fed612c0d
with:
python-version: "${{ matrix.python-version }}-dev"
nogil: ${{ matrix.nogil || false }}

- name: Install tools
uses: ./.github/actions/install-tools
Expand Down