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 ebf262f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
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.

0 comments on commit ebf262f

Please sign in to comment.