Skip to content

Use more structured approach to testing #33

Use more structured approach to testing

Use more structured approach to testing #33

Workflow file for this run

name: lint
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: ruff-mypy
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v6
# Installing all dependencies and not just the linters as mypy needs them for type checking
- name: Sync dependencies
run: |
uv sync --extra dev
- name: Lint with ruff
run: |
uv run hatch run ruff check .
- name: Check formatting with ruff
run: |
uv run hatch run ruff format --diff .
uv run hatch run ruff format --check .
- name: Lint with mypy
run: |
uv run hatch run mypy sphinxext_altair tests