Skip to content

Commit

Permalink
ci: Test with GIL-less Python
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed May 24, 2024
1 parent 08ad6dc commit 2d64143
Showing 1 changed file with 9 additions and 3 deletions.
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
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@241105c567c5b7600b24062b638324ff3ae8f4cd
with:
python-version: "${{ matrix.python-version }}-dev"
nogil: ${{ matrix.nogil || false }}

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

0 comments on commit 2d64143

Please sign in to comment.