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

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

jobs:
test:
runs-on: ubuntu-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 8410fe1

Please sign in to comment.