Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] add typos check / cache to CI #23

Merged
merged 2 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .config/_typos.toml
Empty file.
27 changes: 21 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,26 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --all-features --verbose
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Setup rust-cache
uses: Swatinem/rust-cache@v2
- name: Check Formating
run: cargo fmt --all -- --check
run: cargo +stable fmt --all -- --check
- name: Run Clippy
run: cargo clippy -- -D warnings
run: cargo +stable clippy --workspace --all-targets --all-features -- --deny warnings
- name: Build
run: cargo +stable build --workspace --all-targets --all-features
- name: Run tests
run: cargo +stable test --doc --workspace
typos:
name: Typos Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
with:
config: ./.config/_typos.toml
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ nalgebra = "0.33.2"
rand = { version = "0.8.5", features = ["rand_chacha"] }
rand_distr = "0.4.3"
rerun = "0.21.0"
thiserror = "2.0.7"
serde = { version = "1.0.216", features = ["derive"] }
thiserror = "2.0.11"
serde = { version = "1.0.217", features = ["derive"] }
serde_yaml = "0.9.34"
env_logger = "0.11.5"
env_logger = "0.11.6"
log = "0.4.22"
rayon = "1.10.0"
rand_chacha = "0.3.1"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ impl Imu {
/// PID controller for quadrotor position and attitude control
///
/// The kpid_pos and kpid_att gains are following the format of
/// porportional, derivative and integral gains
/// proportional, derivative and integral gains
/// # Example
/// ```
/// use nalgebra::Vector3;
Expand Down
Loading