From 9b686893adec792bba3a9866573e8a1fcf3577ee Mon Sep 17 00:00:00 2001 From: adamnsandle Date: Thu, 6 Nov 2025 07:36:23 +0000 Subject: [PATCH 1/4] fx test workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5161080..a86d5f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build hatchling pytest soundfile + pip install build hatchling pytest soundfile torchcodec - name: Build package run: python -m build --wheel --outdir dist From 90d9ce769561a12c5f9646f6cdc10a6100d5a768 Mon Sep 17 00:00:00 2001 From: adamnsandle Date: Thu, 6 Nov 2025 07:49:44 +0000 Subject: [PATCH 2/4] fx workflow --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a86d5f0..987c1fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,23 @@ jobs: steps: - 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 uses: actions/setup-python@v4 with: From dea59803200c6a2240604cb5c79e3c298c7dbbf2 Mon Sep 17 00:00:00 2001 From: adamnsandle Date: Thu, 6 Nov 2025 08:04:02 +0000 Subject: [PATCH 3/4] fx workflow --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 987c1fa..d13dec8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build hatchling pytest soundfile torchcodec + pip install build hatchling pytest soundfile - name: Build package run: python -m build --wheel --outdir dist @@ -52,5 +52,10 @@ jobs: subprocess.check_call([sys.executable, "-m", "pip", "install", whl]) shell: python + - name: Install torchcodec + run: | + # Только ПОСЛЕ установки вашего пакета + pip install torchcodec + - name: Run tests run: pytest tests \ No newline at end of file From ec56fe50a5d4536e786911f8781b173c2dcdf4a0 Mon Sep 17 00:00:00 2001 From: adamnsandle Date: Thu, 6 Nov 2025 08:18:46 +0000 Subject: [PATCH 4/4] fx workflow --- .github/workflows/test.yml | 23 +---------------------- pyproject.toml | 7 +++++++ 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d13dec8..eeeed22 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,23 +15,6 @@ jobs: steps: - 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 uses: actions/setup-python@v4 with: @@ -41,6 +24,7 @@ jobs: run: | python -m pip install --upgrade pip pip install build hatchling pytest soundfile + pip install .[test] - name: Build package run: python -m build --wheel --outdir dist @@ -52,10 +36,5 @@ jobs: subprocess.check_call([sys.executable, "-m", "pip", "install", whl]) shell: python - - name: Install torchcodec - run: | - # Только ПОСЛЕ установки вашего пакета - pip install torchcodec - - name: Run tests run: pytest tests \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3b13cfe..b949ea1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,3 +37,10 @@ dependencies = [ [project.urls] Homepage = "https://github.com/snakers4/silero-vad" Issues = "https://github.com/snakers4/silero-vad/issues" + +[project.optional-dependencies] +test = [ + "pytest", + "soundfile", + "torch<2.9", +]