Skip to content

Commit f6c90ad

Browse files
committed
CI: add rust checks
We need to disable the test_router_api_willow_post() as that requires the STT model. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
1 parent b06cea0 commit f6c90ad

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Rust tests
3+
4+
on:
5+
pull_request:
6+
push:
7+
8+
jobs:
9+
rust_tests:
10+
name: Rust checks
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Clone repository
14+
uses: actions/checkout@v4
15+
- name: setup rust toolchain
16+
uses: dtolnay/rust-toolchain@1.92
17+
with:
18+
components: clippy,rustfmt
19+
- name: install cargo-hack
20+
uses: taiki-e/install-action@cargo-hack
21+
- run: cargo hack clippy --all-targets --feature-powerset --group-features hf,stt --no-deps -- -Dclippy::pedantic
22+
- run: cargo hack test --all-targets --feature-powerset --group-features hf,stt

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[allow(clippy::doc_markdown)]
12
pub mod built_info {
23
include!(concat!(env!("OUT_DIR"), "/built.rs"));
34
}

tests/router_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ mod tests {
1111
use wis_rs::{router::router, state::State};
1212

1313
#[cfg(feature = "stt")]
14+
#[ignore = "test requires STT model"]
1415
#[tokio::test]
1516
async fn test_router_api_willow_post() {
1617
const TESTDATA_FILE: &str = "tests/assets/whats_the_time.pcm";

0 commit comments

Comments
 (0)