feat/speech #111
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- "src/**" | |
- "tests/**" | |
- ".github/workflows/test.yaml" | |
pull_request: | |
paths: | |
- "src/**" | |
- "tests/**" | |
- ".github/workflows/test.yaml" | |
jobs: | |
pytest: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
version: "0.4.11" | |
enable-cache: true | |
- run: uv python install 3.12 | |
- run: uv sync --all-extras | |
# TODO: figure out why `pytest` doesn't discover tests in `faster_whisper_server` directory by itself | |
- run: uv run pytest -m "not requires_openai" src/faster_whisper_server/* tests |