Skip to content

Commit

Permalink
Set up CI for the free threaded build
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed May 27, 2024
1 parent 19f67cb commit 848ad56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
env: [{}]

include:
- python-version: "3.13-freethreading-dev"
allow_failure: true
os: ubuntu-20.04
- python-version: "3.13-dev"
allowed_failure: true

Expand Down Expand Up @@ -186,9 +189,17 @@ jobs:

- name: Setup python
uses: actions/[email protected]
if: "!endsWith(matrix.python-version, '-freethreading-dev')"
with:
python-version: ${{ matrix.python-version }}

- name: Setup python from deadsnakes
uses: deadsnakes/[email protected]
if: "endsWith(matrix.python-version, '-freethreading-dev')"
with:
python-version: 3.13-dev
nogil: true

- name: Compilation Cache
uses: hendrikmuhs/[email protected]
with:
Expand Down
3 changes: 3 additions & 0 deletions Tools/ci-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ if [[ $TEST_CODE_STYLE != "1" ]]; then
fi

export CFLAGS="$CFLAGS $EXTRA_CFLAGS"
if [[ $PYTHON_VERSION == *"-freethreading-dev" ]]; then
export PYTHON_GIL=0
fi
python runtests.py \
-vv $STYLE_ARGS \
-x Debugger \
Expand Down

0 comments on commit 848ad56

Please sign in to comment.