From afd5c88ee2ab9b37604a8f994f1104765df22573 Mon Sep 17 00:00:00 2001 From: LauraGPT <18321252+LauraGPT@users.noreply.github.com> Date: Thu, 1 Oct 2026 08:47:20 +0000 Subject: [PATCH] ci: run rich transcription regressions in ONNX package checks Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com> --- .github/workflows/test-funasr-onnx-package.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-funasr-onnx-package.yml b/.github/workflows/test-funasr-onnx-package.yml index 6f9ba5ca8..796ede71a 100644 --- a/.github/workflows/test-funasr-onnx-package.yml +++ b/.github/workflows/test-funasr-onnx-package.yml @@ -4,17 +4,25 @@ on: pull_request: paths: - ".github/workflows/test-funasr-onnx-package.yml" + - "funasr/utils/postprocess_utils.py" - "runtime/python/onnxruntime/**" + - "runtime/python/libtorch/funasr_torch/utils/postprocess_utils.py" - "tests/test_funasr_onnx_release.py" - "tests/test_funasr_onnx_installed.py" + - "tests/test_rich_transcription_postprocess.py" + - "tests/test_rich_transcription_event_segments.py" push: branches: - main paths: - ".github/workflows/test-funasr-onnx-package.yml" + - "funasr/utils/postprocess_utils.py" - "runtime/python/onnxruntime/**" + - "runtime/python/libtorch/funasr_torch/utils/postprocess_utils.py" - "tests/test_funasr_onnx_release.py" - "tests/test_funasr_onnx_installed.py" + - "tests/test_rich_transcription_postprocess.py" + - "tests/test_rich_transcription_event_segments.py" workflow_dispatch: permissions: @@ -41,11 +49,17 @@ jobs: cache: pip - name: Install build tooling - run: python -m pip install --upgrade pip build twine + run: python -m pip install --upgrade pip build twine pytest - name: Check release contract run: python tests/test_funasr_onnx_release.py + - name: Run rich transcription regressions + run: | + python -m pytest -q -p no:cacheprovider \ + tests/test_rich_transcription_postprocess.py \ + tests/test_rich_transcription_event_segments.py + - name: Build wheel and source distribution run: python -m build runtime/python/onnxruntime --outdir dist/funasr-onnx