Skip to content

Commit

Permalink
TST: ensure the GIL is disabled in free-threaded concurrency tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Oct 10, 2024
1 parent c61fd28 commit 89bcfb0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/bleeding_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 89bcfb0

Please sign in to comment.