-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (46 loc) · 1.8 KB
/
Makefile
File metadata and controls
56 lines (46 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: help check test fmt lint doc ci accuracy mel example-controller
help:
@echo "Available targets:"
@echo " check Check workspace compiles"
@echo " test Run all tests"
@echo " accuracy Cross-validate Rust pipeline against Python reference"
@echo " mel Compare Rust vs Python mel spectrograms element-wise"
@echo " fmt Format code"
@echo " lint Run clippy with warnings as errors"
@echo " doc Build and open docs in browser"
@echo " ci Run all CI checks locally (fmt, clippy, test, doc, features)"
@echo " example-controller Run TurnController example"
# Check workspace compiles
check:
cargo check --workspace
# Run all tests
test:
cargo test --workspace
# Cross-validate Rust mel+ONNX pipeline against Python reference probabilities
accuracy:
cargo test --features pipecat --test accuracy -- --ignored accuracy_report --nocapture
# Compare Rust vs Python mel spectrograms element-wise (requires .npy fixtures)
mel:
cargo test --features pipecat -- mel_report --ignored --nocapture
# Run TurnController example
example-controller:
cargo run --features pipecat --example controller
# Format code
fmt:
cargo fmt --all
# Lint
lint:
cargo clippy --workspace -- -D warnings
# Build and open docs in browser
doc:
cargo doc --no-deps -p wavekat-turn --all-features --open
# Run all CI checks locally (mirrors .github/workflows/ci.yml)
ci:
cargo fmt --all -- --check
cargo clippy --workspace -- -D warnings
cargo test --workspace
cargo doc --no-deps -p wavekat-turn --all-features
cargo test -p wavekat-turn --no-default-features --features ""
cargo test -p wavekat-turn --no-default-features --features "pipecat"
cargo test -p wavekat-turn --no-default-features --features "livekit"
cargo test -p wavekat-turn --no-default-features --features "pipecat,livekit"