Skip to content

chore anotehr fix

chore anotehr fix #51

Workflow file for this run

name: tests
on:
push:
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Create venv
run: uv venv
- name: Install dependencies
run: uv pip install -e .[dev]
- name: Run tests (push)
if: github.event_name == 'push'
run: uv run pytest
- name: Run tests + coverage gate (PR into main)
if: github.event_name == 'pull_request' && github.base_ref == 'main'
run: uv run pytest --cov=voice --cov-report=term-missing --cov-fail-under=90