Skip to content

ci: add github actions workflow for linting and formatting #1

ci: add github actions workflow for linting and formatting

ci: add github actions workflow for linting and formatting #1

Workflow file for this run

name: CI
on:
pull_request:
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Run Ruff (Formatting)
run: uv run ruff format --check .
- name: Run Ruff (Linting)
run: uv run ruff check .
- name: Run Pyright (Type Checking)
run: uv run pyright
- name: Run Pytest
run: uv run pytest