Skip to content

chore(deps): bump astral-sh/setup-uv from 3 to 4 in the actions group #21

chore(deps): bump astral-sh/setup-uv from 3 to 4 in the actions group

chore(deps): bump astral-sh/setup-uv from 3 to 4 in the actions group #21

name: Lint, Format, and Type Check
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
pull_request:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- '.github/workflows/lint-and-type-check.yml'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v4
- name: Install the project
run: uv sync --python 3.12
- 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 .