mirror of
https://github.com/snakers4/silero-vad.git
synced 2026-02-04 09:29:22 +08:00
fx workflow
This commit is contained in:
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@@ -15,23 +15,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install FFmpeg (Ubuntu)
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y ffmpeg
|
|
||||||
|
|
||||||
- name: Install FFmpeg (macOS)
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
run: |
|
|
||||||
brew update
|
|
||||||
brew install ffmpeg
|
|
||||||
|
|
||||||
- name: Install FFmpeg (Windows)
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: |
|
|
||||||
choco install ffmpeg -y
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@@ -41,6 +24,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install build hatchling pytest soundfile
|
pip install build hatchling pytest soundfile
|
||||||
|
pip install .[test]
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: python -m build --wheel --outdir dist
|
run: python -m build --wheel --outdir dist
|
||||||
@@ -52,10 +36,5 @@ jobs:
|
|||||||
subprocess.check_call([sys.executable, "-m", "pip", "install", whl])
|
subprocess.check_call([sys.executable, "-m", "pip", "install", whl])
|
||||||
shell: python
|
shell: python
|
||||||
|
|
||||||
- name: Install torchcodec
|
|
||||||
run: |
|
|
||||||
# Только ПОСЛЕ установки вашего пакета
|
|
||||||
pip install torchcodec
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests
|
run: pytest tests
|
||||||
@@ -37,3 +37,10 @@ dependencies = [
|
|||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/snakers4/silero-vad"
|
Homepage = "https://github.com/snakers4/silero-vad"
|
||||||
Issues = "https://github.com/snakers4/silero-vad/issues"
|
Issues = "https://github.com/snakers4/silero-vad/issues"
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
test = [
|
||||||
|
"pytest",
|
||||||
|
"soundfile",
|
||||||
|
"torch<2.9",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user