Skip to content

Commit

Permalink
ci: Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-c committed Nov 28, 2024
1 parent b41853d commit 463739f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 276 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"

- name: Install the project
run: uv sync --all-extras --dev

- name: Run static checks
run: uv tool run ruff check

- name: Run format checks
run: uv tool run ruff format --check

- name: Run tests
run: uv sync --dev --all-extras
1 change: 0 additions & 1 deletion .python-version

This file was deleted.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "local-audio-toolkit"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.11,<3.12"
dependencies = [
"llm>=0.17",
"llm-ollama>=0.6.0",
Expand All @@ -15,10 +15,11 @@ dependencies = [
"pvrecorderdemo>=1.2.3",
"rich>=13.9.4",
"python-ffmpeg>=2.0.12",
"torch==2.5.1",
]

[project.optional-dependencies]
dev = [
"pytest>=8.3.3",
"pytest-cov>=6.0.0",
]
]
Loading

0 comments on commit 463739f

Please sign in to comment.