Skip to content

Commit ec56fe5

Browse files
committed
fx workflow
1 parent dea5980 commit ec56fe5

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,6 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Install FFmpeg (Ubuntu)
19-
if: matrix.os == 'ubuntu-latest'
20-
run: |
21-
sudo apt-get update
22-
sudo apt-get install -y ffmpeg
23-
24-
- name: Install FFmpeg (macOS)
25-
if: matrix.os == 'macos-latest'
26-
run: |
27-
brew update
28-
brew install ffmpeg
29-
30-
- name: Install FFmpeg (Windows)
31-
if: matrix.os == 'windows-latest'
32-
run: |
33-
choco install ffmpeg -y
34-
3518
- name: Set up Python
3619
uses: actions/setup-python@v4
3720
with:
@@ -41,6 +24,7 @@ jobs:
4124
run: |
4225
python -m pip install --upgrade pip
4326
pip install build hatchling pytest soundfile
27+
pip install .[test]
4428
4529
- name: Build package
4630
run: python -m build --wheel --outdir dist
@@ -52,10 +36,5 @@ jobs:
5236
subprocess.check_call([sys.executable, "-m", "pip", "install", whl])
5337
shell: python
5438

55-
- name: Install torchcodec
56-
run: |
57-
# Только ПОСЛЕ установки вашего пакета
58-
pip install torchcodec
59-
6039
- name: Run tests
6140
run: pytest tests

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ dependencies = [
3737
[project.urls]
3838
Homepage = "https://github.com/snakers4/silero-vad"
3939
Issues = "https://github.com/snakers4/silero-vad/issues"
40+
41+
[project.optional-dependencies]
42+
test = [
43+
"pytest",
44+
"soundfile",
45+
"torch<2.9",
46+
]

0 commit comments

Comments
 (0)