Add free-threaded Python support #889
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
name: test | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
- '3.13t' | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: false | |
- name: Install | |
run: | | |
uv python install ${{ env.UV_PYTHON }} | |
uv venv .venv | |
uv pip install maturin | |
uv run --no-sync maturin develop --uv --extras=test | |
- name: Test | |
run: | | |
source .venv/bin/activate | |
make test | |
macos: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
- '3.13t' | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: false | |
- name: Install | |
run: | | |
uv python install ${{ env.UV_PYTHON }} | |
uv venv .venv | |
uv pip install maturin | |
uv run --no-sync maturin develop --uv --extras=test | |
- name: Test | |
run: | | |
source .venv/bin/activate | |
make test | |
windows: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
- '3.13t' | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: false | |
- name: Install | |
run: | | |
uv python install ${{ env.UV_PYTHON }} | |
uv venv .venv | |
uv pip install maturin | |
uv run --no-sync maturin develop --uv --extras=test | |
- name: Test | |
run: | | |
uv run --no-sync py.test -v tests |