-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.4 KB
/
ci.yml
File metadata and controls
63 lines (50 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install package
run: uv run --extra dev maturin develop --release
- name: Import smoke
run: uv run --extra dev python scripts/smoke_public_api.py
- name: Python tests
run: uv run --extra dev pytest
- name: Lower-bound Polars smoke
run: |
uv pip install --reinstall "polars==1.29.0"
uv run --no-sync python scripts/smoke_public_api.py
- name: Rust and lint gates
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14'
run: |
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
uv run --extra dev ruff check .