adjust import #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python package | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install -U setuptools wheel | |
pip3 install -e . | |
- name: Test paraformer online onnx | |
run: | | |
python3 test/test_paraformer_online.py | |
- name: Test paraformer offline onnx | |
run: | | |
python3 test/test_paraformer_offline.py | |
- name: Test vad onnx online | |
run: | | |
python3 test/test_vad_online.py | |
- name: Test vad onnx offline | |
run: | | |
python3 test/test_vad_offline.py | |
- name: Test punctuator onnx | |
run: | | |
python3 test/test_punctuator.py | |
- name: Test asr all in one onnx | |
run: | | |
python3 test/test_asr_all_in_one.py | |
- name: Test file transcription | |
run: | | |
python3 test/test_file_transcript.py |