@@ -2,71 +2,19 @@ name: CI
22
33on :
44 push :
5- branches : [ main ]
6- paths :
7- - Cargo.toml
8- - pyproject.toml
5+ branches : [main]
96 pull_request :
10- branches : [ main ]
11- paths :
12- - Cargo.toml
13- - pyproject.toml
14- workflow_dispatch :
7+ branches : [main]
158
169jobs :
17- lint-rust :
10+ test :
1811 runs-on : ubuntu-latest
19- steps :
20- - uses : actions/checkout@v4
21- - uses : dtolnay/rust-toolchain@stable
22- with :
23- components : rustfmt, clippy
24- - name : Check formatting
25- run : cargo fmt --check
26- - name : Run clippy
27- run : cargo clippy -- -D warnings
28-
29- test-rust :
30- runs-on : ${{ matrix.os }}
31- strategy :
32- matrix :
33- os : [ubuntu-latest, windows-latest, macos-latest]
34- steps :
35- - uses : actions/checkout@v4
36- - uses : dtolnay/rust-toolchain@stable
37- - name : Run tests
38- run : cargo test --verbose
39-
40- lint-python :
41- runs-on : ubuntu-latest
42- steps :
43- - uses : actions/checkout@v4
44- - uses : actions/setup-python@v5
45- with :
46- python-version : ' 3.11'
47- - name : Install ruff
48- run : pip install ruff
49- - name : Run ruff format check
50- run : ruff format --check python/
51- - name : Run ruff lint
52- run : ruff check python/
53-
54- test-python :
55- runs-on : ${{ matrix.os }}
56- strategy :
57- matrix :
58- os : [ubuntu-latest, windows-latest, macos-latest]
59- python-version : ['3.10', '3.11', '3.12']
6012 steps :
6113 - uses : actions/checkout@v4
6214 - uses : actions/setup-python@v5
6315 with :
64- python-version : ${{ matrix.python-version }}
16+ python-version : " 3.12 "
6517 - uses : dtolnay/rust-toolchain@stable
66- - name : Install dependencies
67- run : |
68- pip install maturin pytest
69- - name : Build extension
70- run : maturin develop --release
71- - name : Run pytest
72- run : pytest tests/
18+ - run : pip install maturin pytest
19+ - run : maturin develop --release
20+ - run : pytest tests/
0 commit comments