mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-05 18:09:22 +08:00
fx
This commit is contained in:
@@ -1,19 +1,16 @@
|
|||||||
name: Test Package
|
name: Test Package Linux
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # запуск вручную
|
workflow_dispatch: # запуск вручную
|
||||||
#push:
|
|
||||||
# branches:
|
|
||||||
# - master # или любая тестовая ветка
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
#python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
|
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
|
||||||
python-version: ["3.10"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -32,7 +29,11 @@ jobs:
|
|||||||
run: python -m build --wheel --outdir dist
|
run: python -m build --wheel --outdir dist
|
||||||
|
|
||||||
- name: Install package
|
- name: Install package
|
||||||
run: pip install dist/*.whl
|
run: |
|
||||||
|
import glob, subprocess, sys
|
||||||
|
whl = glob.glob("dist/*.whl")[0]
|
||||||
|
subprocess.check_call([sys.executable, "-m", "pip", "install", whl])
|
||||||
|
shell: python
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests
|
run: pytest tests
|
||||||
Reference in New Issue
Block a user