diff .github/workflows/ci-test.yml @ 8342:b38327f15450

test: set PYTHON_GIL to disable when using freethreaded This should help detect issues with roundup, supporting libraries and freethreading.
author John Rouillard <rouilj@ieee.org>
date Thu, 19 Jun 2025 16:53:03 -0400
parents cf757cd416dc
children 1c2a3512d4b5
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Thu Jun 19 16:38:38 2025 -0400
+++ b/.github/workflows/ci-test.yml	Thu Jun 19 16:53:03 2025 -0400
@@ -137,6 +137,12 @@
           python -c "import sqlite3; print('sqlite version: ', sqlite3.sqlite_version)"
           python -c "import setuptools; print('setuptools version: ', setuptools.__version__);"
 
+      # from:
+      # https://hugovk.dev/blog/2025/free-threaded-python-on-github-actions/
+      - name: Set PYTHON_GIL when freethreaded
+        if: endsWith(matrix.python-version, 't')
+        run: |
+          echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
       - name: Update pip
         run: python -m pip install --upgrade pip
 

Roundup Issue Tracker: http://roundup-tracker.org/