From 89bcfb08033e8d499434bd286075c72e0f27d265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 11 Oct 2024 00:07:49 +0200 Subject: [PATCH] TST: ensure the GIL is disabled in free-threaded concurrency tests --- .github/workflows/bleeding_edge.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bleeding_edge.yml b/.github/workflows/bleeding_edge.yml index 4f0a314..b0707dd 100644 --- a/.github/workflows/bleeding_edge.yml +++ b/.github/workflows/bleeding_edge.yml @@ -54,7 +54,15 @@ jobs: run: | source .venv/bin/activate pytest --color=yes --pyargs inifix --doctest-modules - - name: Run concurrency tests + - name: Run concurrency tests (GIL) + if: ${{ ! matrix.free-threading }} run: | source .venv/bin/activate pytest --color=yes --count 100 tests/test_concurrent.py + - name: Run concurrency tests (free-threading) + if: matrix.free-threading + run: | + source .venv/bin/activate + pytest --color=yes --count 100 tests/test_concurrent.py + env: + PYTHON_GIL: 0