mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
release(onnx): prepare 0.4.3 with installed artifact regressions
Signed-off-by: zhifu gao <[email protected]>
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
- ".github/workflows/test-funasr-onnx-package.yml"
|
||||
- "runtime/python/onnxruntime/**"
|
||||
- "tests/test_funasr_onnx_release.py"
|
||||
- "tests/test_funasr_onnx_installed.py"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@@ -13,6 +14,7 @@ on:
|
||||
- ".github/workflows/test-funasr-onnx-package.yml"
|
||||
- "runtime/python/onnxruntime/**"
|
||||
- "tests/test_funasr_onnx_release.py"
|
||||
- "tests/test_funasr_onnx_installed.py"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -60,7 +62,7 @@ jobs:
|
||||
import importlib.util
|
||||
from importlib.metadata import requires, version
|
||||
|
||||
assert version("funasr-onnx") == "0.4.2"
|
||||
assert version("funasr-onnx") == "0.4.3"
|
||||
assert importlib.util.find_spec("torch") is None
|
||||
|
||||
requirements = requires("funasr-onnx") or []
|
||||
@@ -76,10 +78,19 @@ jobs:
|
||||
)
|
||||
PY
|
||||
|
||||
- name: Verify installed wrapper error paths
|
||||
run: python tests/test_funasr_onnx_installed.py
|
||||
|
||||
- name: Verify source distribution error paths
|
||||
run: |
|
||||
python -m pip install --force-reinstall --no-deps dist/funasr-onnx/*.tar.gz
|
||||
python -m pip check
|
||||
python tests/test_funasr_onnx_installed.py
|
||||
|
||||
- name: Upload release candidate
|
||||
if: matrix.python-version == '3.12'
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: funasr-onnx-0.4.2
|
||||
name: funasr-onnx-0.4.3
|
||||
path: dist/funasr-onnx/*
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user