Skip to content

chore(deps): bump actions/checkout in the actions group (#22) #98

chore(deps): bump actions/checkout in the actions group (#22)

chore(deps): bump actions/checkout in the actions group (#22) #98

name: Lint, Format, and Type Check
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
tags-ignore:
- 'v*.*.*'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
workflow_dispatch:
workflow_call:
env:
FORCE_COLOR: 1
UV_LOCKED: 1
defaults:
run:
shell: bash
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
with:
python-version: "3.13"
- name: Install the project
run: uv sync --all-extras
- name: Run mypy
run: uv run mypy .
- name: Run ruff lint
run: uv run ruff check .
- name: Run ruff format
run: uv run ruff format --check .