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 Jun 12, 2024
1 parent 62a974c commit 5d011e2
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@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

0 comments on commit 5d011e2

Please sign in to comment.