Skip to content

Commit 5bcdf74

Browse files
committed
ci(rust): add rust test execution
1 parent 55fd97b commit 5bcdf74

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ jobs:
7979
- name: Run pytest
8080
run: uv run pytest -vvv
8181

82+
run_rust_tests:
83+
name: Run tests (Rust)
84+
needs: [check_pre_commit]
85+
runs-on: ${{ matrix.os }}
86+
strategy:
87+
matrix:
88+
os:
89+
- ubuntu-latest
90+
- macos-latest
91+
steps:
92+
- name: Checkout source code
93+
uses: actions/checkout@v4
94+
95+
- name: Run cargo test
96+
run: cargo test
97+
8298
build_linux_wheels:
8399
name: Build wheels (linux)
84100
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.*.labels.*.name, 'dependencies')
@@ -392,6 +408,7 @@ jobs:
392408
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
393409
needs:
394410
- run_python_tests
411+
- run_rust_tests
395412
- build_linux_wheels
396413
- build_macos_wheels
397414
- build_sdist

0 commit comments

Comments
 (0)