diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index eff90973..c2c8cfd2 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -19,7 +19,7 @@ jobs: - os: macos-latest python-version: "3.13" - os: windows-latest - python-version: "3.11" + python-version: "3.13" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -36,6 +36,10 @@ jobs: - name: Install ffmpeg (for Whisper) if: runner.os != 'macOS' uses: FedericoCarboni/setup-ffmpeg@v3 + - name: Install standard-aifc on Python 3.13 + if: matrix.python-version == '3.13' + run: | + python -m pip install standard-aifc - name: Install Python dependencies (Ubuntu, <=3.12) if: runner.os == 'Linux' && matrix.python-version != '3.13' run: | @@ -43,18 +47,18 @@ jobs: - name: Install Python dependencies (Ubuntu, 3.13) if: runner.os == 'Linux' && matrix.python-version == '3.13' run: | - python -m pip install standard-aifc setuptools + python -m pip install setuptools python -m pip install --no-build-isolation .[dev,audio,pocketsphinx,whisper-api] - name: Install Python dependencies (macOS, 3.13) if: runner.os == 'macOS' run: | brew install portaudio - python -m pip install pocketsphinx standard-aifc setuptools + python -m pip install pocketsphinx setuptools python -m pip install --no-build-isolation .[dev,audio,whisper-api] - name: Install Python dependencies (Windows) if: runner.os == 'Windows' run: | - python -m pip install .[dev,whisper-local,whisper-api] + python -m pip install standard-aifc .[dev,whisper-local,whisper-api] - name: Test with unittest run: | pytest --doctest-modules --strict -v -W="ignore: aifc" speech_recognition/recognizers/ tests/