Skip to content

Commit

Permalink
[chore] Run unittests on Windows too
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Apr 15, 2024
1 parent 4f1dbc5 commit 4619ec5
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,40 @@ on:

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

include:
- os: ubuntu-latest
python-version: "3.8"
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y libpulse-dev libasound2-dev
- name: Install ffmpeg (for Whisper)
uses: FedericoCarboni/setup-ffmpeg@v3
- name: Install Python dependencies
- name: Install Python dependencies (Ubuntu only)
if: ${{ matrix.os }} == 'ubuntu-latest'
run: |
python -m pip install 'pocketsphinx<5'
- name: Install Python dependencies
run: |
python -m pip install .[whisper-local,whisper-api]
- name: Test with unittest
run: |
Expand Down

0 comments on commit 4619ec5

Please sign in to comment.