From 7bc6154483a5d09b46d237212ac111711b845118 Mon Sep 17 00:00:00 2001 From: femisan Date: Sun, 2 Mar 2025 15:39:59 +0900 Subject: [PATCH] add ffmpeg install script --- .github/workflows/unit_test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index ca771cd9b..b0c703121 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - python-version: ["3.10", "3.11"] + python-version: ["3.11"] steps: - name: Checkout repository @@ -37,6 +37,17 @@ jobs: python -m pip install pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Install ffmpeg and libopus + run: | + if [ ${{ matrix.os }} == 'ubuntu-latest' ]; then + sudo apt-get update + apt-get install -y --no-install-recommends libopus0 ffmpeg + fi + + if [ ${{ matrix.os }} == 'macos-latest' ]; then + brew install ffmpeg opus + fi + - name: Run tests with pytest run: | pytest --maxfail=5 --disable-warnings --tb=short