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 a5836d0
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

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

jobs:
test:
runs-on: macos-latest

strategy:
matrix:
python-version: ["3.11"]

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.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
]
2 changes: 2 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5836d0

Please sign in to comment.