19 lines
435 B
YAML
19 lines
435 B
YAML
name: Lint and test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
name: Lint and test 🧪
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Install the project
|
|
run: uv sync --locked
|
|
- name: Lint
|
|
run: uv run ruff check
|
|
- name: Check formatting
|
|
run: uv run ruff format --check
|
|
- name: Run tests
|
|
run: uv run pytest
|