Add GitHub Actions CI (#54)

This commit is contained in:
Dan Davison
2025-09-04 12:54:31 -04:00
committed by GitHub
parent 3c71a062fd
commit 457fa1fce8

37
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: CI
on:
pull_request:
push:
branches: [ main ]
jobs:
lint-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.13']
os: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync
- name: Format, lint, type check
run: |
uv run poe format
uv run poe lint
uv run poe lint-types
- name: Run tests
run: |
uv run pytest