Refactor github actions tests (#688)
This commit is contained in:
22
.github/workflows/test-build-wheel.yaml
vendored
22
.github/workflows/test-build-wheel.yaml
vendored
@@ -4,8 +4,23 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
paths:
|
||||
- 'setup.py'
|
||||
- '.github/workflows/test-build-wheel.yaml'
|
||||
- 'CMakeLists.txt'
|
||||
- 'cmake/**'
|
||||
- 'sherpa-onnx/csrc/*'
|
||||
- 'sherpa-onnx/python/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'setup.py'
|
||||
- '.github/workflows/test-build-wheel.yaml'
|
||||
- 'CMakeLists.txt'
|
||||
- 'cmake/**'
|
||||
- 'sherpa-onnx/csrc/*'
|
||||
- 'sherpa-onnx/python/**'
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -15,13 +30,13 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
test-build-wheel:
|
||||
name: ${{ matrix.os }} ${{ matrix.python_version }}
|
||||
name: ${{ matrix.os }} ${{ matrix.python-version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -75,6 +90,7 @@ jobs:
|
||||
export PATH=/c/hostedtoolcache/windows/Python/3.9.13/x64/bin:$PATH
|
||||
export PATH=/c/hostedtoolcache/windows/Python/3.10.11/x64/bin:$PATH
|
||||
export PATH=/c/hostedtoolcache/windows/Python/3.11.8/x64/bin:$PATH
|
||||
export PATH=/c/hostedtoolcache/windows/Python/3.12.2/x64/bin:$PATH
|
||||
|
||||
which sherpa-onnx
|
||||
sherpa-onnx --help
|
||||
|
||||
Reference in New Issue
Block a user