Skip to content

add freethreaded python wheels, 3.14 support, modernize ci #758

add freethreaded python wheels, 3.14 support, modernize ci

add freethreaded python wheels, 3.14 support, modernize ci #758

Workflow file for this run

name: CI
on:
release:
types: [created]
push:
schedule:
# Runs every Thursday at 20:23 GMT to avoid bit rot
- cron: "20 23 * * 4"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Lint with rustfmt
run: cargo fmt -- --check
- name: Lint with clippy
run: cargo clippy --all-targets --all-features
- name: Test with cargo
run: cargo test
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12", "3.13", "3.13t", "3.14", "3.14t"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build and test
run: |
uv sync
uv run maturin develop --release
uv run pytest tests/test_sqloxide.py -v