From 6aacbc9937e33110a8906ff1e44be12316e79204 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 19 Jan 2025 18:56:16 +0100 Subject: [PATCH] Add ubuntu-22.04-arm and windows-2025 to the testing --- .github/workflows/unittests.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 23afbe53..26d2b883 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -24,8 +24,12 @@ jobs: python-version: "3.12" - os: ubuntu-22.04 python-version: "3.13" + - os: ubuntu-22.04-arm + python-version: "3.13" - os: windows-latest python-version: "3.11" + - os: windows-2025 + python-version: "3.11" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -34,24 +38,21 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install build dependencies - if: matrix.os == 'ubuntu-22.04' + if: runner.os == 'Linux' run: | sudo apt-get update - sudo apt-get install --no-install-recommends -y libpulse-dev libasound2-dev - sudo apt-get install --no-install-recommends -y portaudio19-dev - - name: Install ffmpeg (for Whisper) - uses: FedericoCarboni/setup-ffmpeg@v3 - - name: Install Python dependencies (Ubuntu, <=3.12) - if: matrix.os == 'ubuntu-22.04' && matrix.python-version != '3.13' + sudo apt-get install --no-install-recommends -y ffmpeg flac libasound2-dev libpulse-dev portaudio19-dev + - name: Install Python dependencies (Ubuntu, < 3.13) + if: runner.os == 'Linux' && matrix.python-version < '3.13' run: | python -m pip install .[dev,audio,pocketsphinx,google-cloud,whisper-local,faster-whisper,openai,groq] - - name: Install Python dependencies (Ubuntu, 3.13) - if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.13' + - 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 standard-aifc # Remove this line when switching to pyproject.toml python -m pip install --no-build-isolation .[dev,audio,pocketsphinx,google-cloud,openai,groq] - name: Install Python dependencies (Windows) - if: matrix.os == 'windows-latest' + if: runner.os == 'Windows' run: | python -m pip install .[dev,whisper-local,faster-whisper,google-cloud,openai,groq] - name: Test with unittest