Add SHL provider. #974
Workflow file for this run
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
name: run-python-test | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/run-python-test.yaml' | |
- '.github/scripts/test-python.sh' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'sherpa-onnx/csrc/*' | |
- 'python-api-examples/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/run-python-test.yaml' | |
- '.github/scripts/test-python.sh' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'sherpa-onnx/csrc/*' | |
- 'python-api-examples/**' | |
workflow_dispatch: | |
concurrency: | |
group: run-python-test-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
run-python-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] # windows-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.9" | |
- os: macos-latest | |
python-version: "3.10" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ matrix.os }}-python-${{ matrix.python-version }} | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python dependencies | |
shell: bash | |
run: | | |
python3 -m pip install --upgrade pip numpy pypinyin sentencepiece==0.1.96 soundfile | |
- name: Install sherpa-onnx | |
shell: bash | |
run: | | |
export CMAKE_CXX_COMPILER_LAUNCHER=ccache | |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | |
cmake --version | |
python3 -m pip install --verbose . | |
- name: Test sherpa-onnx | |
shell: bash | |
run: | | |
.github/scripts/test-speaker-recognition-python.sh | |
.github/scripts/test-python.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: tts-generated-test-files-${{ matrix.os }}-${{ matrix.python-version }} | |
path: tts |