-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -489,6 +489,36 @@ jobs: | |
echo PYO3_CONFIG_FILE=$PYO3_CONFIG_FILE >> $GITHUB_ENV | ||
- run: python3 -m nox -s test | ||
|
||
test-free-threaded: | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'CI-build-full') || github.event_name != 'pull_request' }} | ||
needs: [fmt] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
- uses: dtolnay/rust-toolchain | ||
with: | ||
components: rust-src | ||
# TODO: replace with setup-python when there is support | ||
- uses: deadsnakes/[email protected] | ||
with: | ||
python-version: '3.13-dev' | ||
nogil: true | ||
- run: python3 -m sysconfig | ||
- run: python3 -m pip install --upgrade pip && pip install nox | ||
- name: Run nox sessions that should pass | ||
env: | ||
UNSAFE_PYO3_BUILD_FREE_THREADED: 1 | ||
run: nox -s ffi-check clippy docs rustfmt ruff | ||
- name: Run PyO3 tests with free-threaded Python (can fail) | ||
# TODO fix the test crashes so we can unset this | ||
continue-on-error: true | ||
env: | ||
UNSAFE_PYO3_BUILD_FREE_THREADED: 1 | ||
run: nox -s test | ||
|
||
test-version-limits: | ||
needs: [fmt] | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'CI-build-full') || github.event_name != 'pull_request' }} | ||
|
@@ -627,6 +657,7 @@ jobs: | |
- coverage | ||
- emscripten | ||
- test-debug | ||
- test-free-threaded | ||
- test-version-limits | ||
- check-feature-powerset | ||
- test-cross-compilation | ||
|