Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/ci.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI Pipeline

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:

jobs:
uv-ci:
name: CI (uv)
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install system audio dependencies
run: |
sudo apt-get update
sudo apt-get install -y libportaudio2 portaudio19-dev

- name: Install UV
uses: astral-sh/setup-uv@v7

- name: Set up Python
run: uv python install

- name: Install dependencies
run: |
uv sync --locked --dev

- name: Lint with Ruff
run: |
uv run ruff check --output-format=github --target-version=py313 packages
uv run ruff format --diff --check --target-version=py313 packages

- name: Type check with Ty
run: |
uv run ty check packages

- name: Test with coverage gate
run: |
uv run pytest packages \
--cov=packages/voicepad-core/src/voicepad_core \
--cov=packages/voicepad/src/voicepad \
--cov-fail-under=80 \
--cov-report=term-missing
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.rulers": [
120
]
"editor.defaultFormatter": "charliermarsh.ruff"
},
"chat.useAgentsMdFile": true,
"markdownlint.configFile": ".markdownlint.yaml",
Expand Down
8 changes: 8 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ description = "Serve the documentation locally"
[tasks.sync]
run = "uv sync --extra gpu --upgrade"
description = "Run uv sync"

[tasks.test]
run = "uv run pytest packages --cov=packages/voicepad-core/src/voicepad_core --cov=packages/voicepad/src/voicepad --cov-fail-under=80"
description = "Run pytest with >=80% full package coverage gate"

[tasks.test-all]
run = "uv run pytest packages --cov=packages/voicepad-core/src/voicepad_core --cov=packages/voicepad/src/voicepad"
description = "Run pytest with full package coverage summary"
Loading