ci: linux baixa sidecar, fixture e modelo sherpa-onnx
This commit is contained in:
1 parent
ff43271b70
commit
41ea729edc
1 file changed
+17
@@ -46,3 +46,20 @@ jobs:
|
||||
|
||||
- name: Rust tests
|
||||
run: cargo test --manifest-path src-tauri/Cargo.toml
|
||||
|
||||
- name: Setup sherpa-onnx sidecar (Linux)
|
||||
run: SHERPA_ONNX_TRIPLE=x86_64-unknown-linux-gnu node scripts/setup-sidecar.mjs
|
||||
|
||||
- name: Setup audio fixtures
|
||||
run: node scripts/setup-fixtures.mjs
|
||||
|
||||
- name: Setup sherpa-onnx model (CI roda teste de transcrição real)
|
||||
# 670 MB; em CI é lento mas confiável.
|
||||
env:
|
||||
SHERPA_MODEL_DIR: src-tauri/models/sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8
|
||||
run: node scripts/setup-sidecar.mjs && mkdir -p "$SHERPA_MODEL_DIR" && curl -sL "https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8.tar.bz2" | tar -xj -C "$SHERPA_MODEL_DIR" --strip-components=1
|
||||
|
||||
- name: Run real transcription test
|
||||
env:
|
||||
SHERPA_MODEL_DIR: src-tauri/models/sherpa-onnx-nemo-parakeet-tdt-0.6b-v3-int8
|
||||
run: cargo test --manifest-path src-tauri/Cargo.toml -- --ignored sherpa_onnx::tests::real_transcription_returns_known_text
|
||||
Reference in new issue
Block a user