@@ -3,45 +3,56 @@ name: Tests
33on :
44 push :
55 branches :
6- - ' **' # Triggers on push to all branches
6+ - ' **'
77 pull_request :
88 branches :
9- - ' **' # Triggers on pull request to all branches
9+ - ' **'
1010
1111concurrency :
1212 group : ${{ github.workflow }}-${{ github.ref }}
1313 cancel-in-progress : true
1414
1515jobs :
16- build_and_test :
17- runs-on : ubuntu-latest
16+ build-and-test :
17+ name : ${{ matrix.os }} build
18+ runs-on : ${{ matrix.os }}
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ os :
23+ - ubuntu-latest
24+ - macos-14
25+ - windows-2022
1826 steps :
19- # - run: cd python && python -m unittest test.py
2027 - uses : actions/checkout@v4
2128 with :
2229 submodules : true
30+
31+ - name : Set up Rust
32+ uses : dtolnay/rust-toolchain@stable
33+
2334 - name : Install uv
2435 uses : astral-sh/setup-uv@v5
2536 with :
2637 enable-cache : true
27- - name : Set up Python
38+
39+ - name : Install Python
2840 run : uv python install
29- - uses : ./.github/actions/setup-rust
30- with :
31- target : aarch64-unknown-linux-gnu
32- version : stable
33- - run : |
34- sudo apt-get update && sudo apt-get install -y g++-aarch64-linux-gnu libssl-dev
35- mkdir .cargo
36- echo -e "[target.aarch64-unknown-linux-gnu]\nlinker = \"aarch64-linux-gnu-gcc\"" >> .cargo/config.toml
37- - name : Build rust stuff
41+
42+ - name : Install system dependencies
43+ if : runner.os == 'Linux'
44+ run : sudo apt-get update && sudo apt-get install -y libssl-dev
45+
46+ - name : Build Rust workspace
3847 run : cargo build --workspace --release
39- - name : Run rust tests
48+
49+ - name : Test Rust workspace
4050 run : cargo test --workspace --release
41- - name : Build python package
51+
52+ - name : Build Python package
53+ working-directory : python
4254 run : uv run maturin build --release --features abi3
43- working-directory : ./python
44- - name : Test python package
45- run : uv run python -m unittest discover -s tests
46- working-directory : ./python
4755
56+ - name : Test Python package
57+ working-directory : python
58+ run : uv run python -m unittest discover -s tests
0 commit comments