Skip to content

Commit 56cdb48

Browse files
committed
[FEAT] add typos check / cache to CI
1 parent 090438a commit 56cdb48

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

.config/_typos.toml

Whitespace-only changes.

.github/workflows/CI.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,26 @@ jobs:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Build
21-
run: cargo build --verbose
22-
- name: Run tests
23-
run: cargo test --all-features --verbose
20+
- name: Set up Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
profile: minimal
25+
- name: Setup rust-cache
26+
uses: Swatinem/rust-cache@v2
2427
- name: Check Formating
25-
run: cargo fmt --all -- --check
28+
run: cargo +stable fmt --all -- --check
2629
- name: Run Clippy
27-
run: cargo clippy -- -D warnings
30+
run: cargo +stable clippy --workspace --all-targets --all-features -D warnings
31+
- name: Build
32+
run: cargo +stable build --workspace --all-targets --all-features
33+
- name: Run tests
34+
run: cargo +stable test --doc --workspace
35+
typos:
36+
name: Typos Check
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- uses: crate-ci/typos@master
41+
with:
42+
config: ./.config/_typos.toml

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ nalgebra = "0.33.2"
3131
rand = { version = "0.8.5", features = ["rand_chacha"] }
3232
rand_distr = "0.4.3"
3333
rerun = "0.21.0"
34-
thiserror = "2.0.7"
35-
serde = { version = "1.0.216", features = ["derive"] }
34+
thiserror = "2.0.11"
35+
serde = { version = "1.0.217", features = ["derive"] }
3636
serde_yaml = "0.9.34"
37-
env_logger = "0.11.5"
37+
env_logger = "0.11.6"
3838
log = "0.4.22"
3939
rayon = "1.10.0"
4040
rand_chacha = "0.3.1"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ impl Imu {
487487
/// PID controller for quadrotor position and attitude control
488488
///
489489
/// The kpid_pos and kpid_att gains are following the format of
490-
/// porportional, derivative and integral gains
490+
/// proportional, derivative and integral gains
491491
/// # Example
492492
/// ```
493493
/// use nalgebra::Vector3;

0 commit comments

Comments
 (0)