Skip to content

Commit f447c16

Browse files
committed
test: set PYTHON_GIL to disable when using freethreaded
This should help detect issues with roundup, supporting libraries and freethreading.
1 parent fd7f6b2 commit f447c16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ jobs:
137137
python -c "import sqlite3; print('sqlite version: ', sqlite3.sqlite_version)"
138138
python -c "import setuptools; print('setuptools version: ', setuptools.__version__);"
139139
140+
# from:
141+
# https://hugovk.dev/blog/2025/free-threaded-python-on-github-actions/
142+
- name: Set PYTHON_GIL when freethreaded
143+
if: endsWith(matrix.python-version, 't')
144+
run: |
145+
echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
140146
- name: Update pip
141147
run: python -m pip install --upgrade pip
142148

0 commit comments

Comments
 (0)