Skip to content

Commit 7bac081

Browse files
authored
Check tests in CI (#205)
* Check tests in ci * Only run tests for G474 * Require features defmt and cordic for tests
1 parent deb4b3b commit 7bac081

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
- name: Regular build
4343
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }}
4444
- name: Build examples
45-
run: cargo check --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
45+
run: cargo check --examples --tests --features ${{ matrix.device }} --features ${{ matrix.features }}
4646
- name: Clippy
47-
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }}
47+
run: cargo clippy --examples --tests --features ${{ matrix.device }} --features ${{ matrix.features }}

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,12 @@ required-features = ["cordic"]
147147
[[test]]
148148
name = "nucleo-g474"
149149
harness = false
150+
required-features = ["stm32g474", "defmt", "cordic"]
150151

151152
[[test]]
152153
name = "nucleo-g474_w_jumpers"
153154
harness = false
155+
required-features = ["stm32g474", "defmt", "cordic"]
154156

155157
[lib]
156158
test = false

0 commit comments

Comments
 (0)