Skip to content

Commit

Permalink
free-threaded CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Aug 21, 2024
1 parent 42543f3 commit 67f2752
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,35 @@ jobs:
run: >
cd build;
python -m pytest
free-threaded:
name: "Python 3.13-dev / ubuntu.latest [free-threaded]"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: deadsnakes/action@v3.1.0
with:
python-version: 3.13-dev
nogil: true

- name: Install the latest CMake
uses: lukka/get-cmake@latest

- name: Install PyTest
run: |
python -m pip install pytest pytest-github-actions-annotate-failures
- name: Configure
run: >
cmake -S . -B build -DNB_TEST_FREE_THREADED=ON
- name: Build C++
run: cmake --build build -j 2

- name: Run tests
run: >
cd build;
python -m pytest

0 comments on commit 67f2752

Please sign in to comment.