From 67f275279583e2f43fa877375c587ed5b6acda46 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 21 Aug 2024 16:50:43 +0900 Subject: [PATCH] free-threaded CI job --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9625d9e..1873c5ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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