0.2.1 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Test | |
on: [push, pull_request] | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.10" | |
- "3.13" | |
env: | |
UV_PYTHON: ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Check formatting | |
run: uv run ruff format --check | |
- name: Check typing | |
run: uv run mypy . | |
- name: Lint project | |
run: uv run ruff check . | |
- name: Run tests | |
run: uv run pytest tests |