Skip to content

Add dedicated lint job to CI with format and style checks #12

Add dedicated lint job to CI with format and style checks

Add dedicated lint job to CI with format and style checks #12

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync
- name: Check Python formatting
run: uv run ruff format --check .
- name: Lint Python
run: uv run ruff check .
- name: Check Markdown formatting
run: uv run mdformat --check .
- name: Check shell formatting
run: shfmt -d .
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest tests