Compare commits
3 commits
b1eb4be4d0
...
032aa3540b
Author | SHA1 | Date | |
---|---|---|---|
032aa3540b | |||
1e212fc077 | |||
fe0fa80cf6 |
1 changed files with 21 additions and 1 deletions
|
@ -13,6 +13,7 @@ jobs:
|
|||
- name: Set up Rust
|
||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt
|
||||
- name: Check Rust formatting
|
||||
run: cargo fmt --all -- --check
|
||||
|
@ -26,6 +27,7 @@ jobs:
|
|||
- name: Set up Rust
|
||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy
|
||||
- name: Run Clippy
|
||||
run: cargo clippy -- -D warnings
|
||||
|
@ -38,6 +40,8 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
- name: Set up Rust
|
||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Check for Rust compilation errors
|
||||
run: cargo check
|
||||
|
||||
|
@ -49,10 +53,26 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
- name: Set up Rust
|
||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
- name: Set up Python
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Set up Python toolchain
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.13.2
|
||||
- name: Set up Python environment
|
||||
run: pip install -r requirements.txt
|
||||
- name: Build Rust code
|
||||
run: maturin develop
|
||||
|
||||
test-rust:
|
||||
name: Test Rust
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Rust
|
||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Run Rust tests
|
||||
run: cargo test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue