Skip to content

Commit c28abd2

Browse files
authored
Merge pull request #3 from HYP3R00T/fix-vad-and-recording
Enhance audio recording features and improve testing framework
2 parents 6cb5295 + 967bcc1 commit c28abd2

File tree

20 files changed

+1980
-167
lines changed

20 files changed

+1980
-167
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI Pipeline
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [opened, synchronize, reopened, ready_for_review]
7+
workflow_dispatch:
8+
9+
jobs:
10+
uv-ci:
11+
name: CI (uv)
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Install system audio dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y libportaudio2 portaudio19-dev
22+
23+
- name: Install UV
24+
uses: astral-sh/setup-uv@v7
25+
26+
- name: Set up Python
27+
run: uv python install
28+
29+
- name: Install dependencies
30+
run: |
31+
uv sync --locked --dev
32+
33+
- name: Lint with Ruff
34+
run: |
35+
uv run ruff check --output-format=github --target-version=py313 packages
36+
uv run ruff format --diff --check --target-version=py313 packages
37+
38+
- name: Type check with Ty
39+
run: |
40+
uv run ty check packages
41+
42+
- name: Test with coverage gate
43+
run: |
44+
uv run pytest packages \
45+
--cov=packages/voicepad-core/src/voicepad_core \
46+
--cov=packages/voicepad/src/voicepad \
47+
--cov-fail-under=80 \
48+
--cov-report=term-missing

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
"source.fixAll.ruff": "explicit",
1818
"source.organizeImports.ruff": "explicit"
1919
},
20-
"editor.defaultFormatter": "charliermarsh.ruff",
21-
"editor.rulers": [
22-
120
23-
]
20+
"editor.defaultFormatter": "charliermarsh.ruff"
2421
},
2522
"chat.useAgentsMdFile": true,
2623
"markdownlint.configFile": ".markdownlint.yaml",

mise.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ description = "Serve the documentation locally"
2626
[tasks.sync]
2727
run = "uv sync --extra gpu --upgrade"
2828
description = "Run uv sync"
29+
30+
[tasks.test]
31+
run = "uv run pytest packages --cov=packages/voicepad-core/src/voicepad_core --cov=packages/voicepad/src/voicepad --cov-fail-under=80"
32+
description = "Run pytest with >=80% full package coverage gate"
33+
34+
[tasks.test-all]
35+
run = "uv run pytest packages --cov=packages/voicepad-core/src/voicepad_core --cov=packages/voicepad/src/voicepad"
36+
description = "Run pytest with full package coverage summary"

0 commit comments

Comments
 (0)