Compare commits
3 commits
032aa3540b
...
0ef7331276
Author | SHA1 | Date | |
---|---|---|---|
0ef7331276 | |||
9db6a303a7 | |||
f687105dc9 |
1 changed files with 42 additions and 40 deletions
|
@ -14,36 +14,37 @@ jobs:
|
||||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
override: false
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Check Rust formatting
|
- name: Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
clippy:
|
# clippy:
|
||||||
name: Clippy
|
# name: Clippy
|
||||||
runs-on: docker
|
# runs-on: docker
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Set up Rust
|
# - name: Set up Rust
|
||||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
components: clippy
|
# components: clippy
|
||||||
- name: Run Clippy
|
# - name: Run Clippy
|
||||||
run: cargo clippy -- -D warnings
|
# run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
check:
|
# check:
|
||||||
name: Check
|
# name: Check
|
||||||
runs-on: docker
|
# runs-on: docker
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Set up Rust
|
# - name: Set up Rust
|
||||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
# uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
- name: Check for Rust compilation errors
|
# - name: Check for Rust compilation errors
|
||||||
run: cargo check
|
# run: cargo check
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -51,28 +52,29 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up Rust
|
|
||||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
- name: Set up Python toolchain
|
- name: Set up Python toolchain
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.13.2
|
python-version: 3.13.2
|
||||||
- name: Set up Python environment
|
- name: Set up Python environment
|
||||||
run: pip install -r requirements.txt
|
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
|
- name: Set up Rust
|
||||||
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- name: Run Rust tests
|
override: false
|
||||||
run: cargo test
|
- 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