Add integration test for GitHub provided free-threaded Python (#12471)

This commit is contained in:
Zanie Blue 2025-04-10 16:51:50 -05:00 committed by GitHub
parent 591bc34d84
commit 50de464425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 0 deletions

View File

@ -1349,6 +1349,37 @@ jobs:
env: env:
UV_PROJECT_ENVIRONMENT: "/home/runner/example" UV_PROJECT_ENVIRONMENT: "/home/runner/example"
integration-test-github-actions-freethreaded:
timeout-minutes: 10
needs: build-binary-linux-libc
name: "integration test | free-threaded python on github actions"
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
with:
python-version: "3.13t"
- name: "Download binary"
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
with:
name: uv-linux-libc-${{ github.sha }}
- name: "Prepare binary"
run: chmod +x ./uv
- name: "Install a package without system opt-in"
run: |
./uv pip install anyio && exit 1 || echo "Failed as expected"
- name: "Install a package with system opt-in but without free-threaded opt-in"
run: |
./uv pip install anyio --system --python 3.13 || echo "Failed as expected"
# (we need to request 3.13 or we'll discover 3.12 on the system)
- name: "Install a package with system and free-threaded opt-in"
run: |
./uv pip install anyio --system --python 3.13t
integration-test-publish-changed: integration-test-publish-changed:
timeout-minutes: 10 timeout-minutes: 10
needs: build-binary-linux-libc needs: build-binary-linux-libc