name: Mypy
on:
  pull_request:
    branches: [main]
  workflow_dispatch:

jobs:
  mypy_py3:
    name: Mypy check
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v7
      - name: Setup Python
        uses: actions/setup-python@v7
        with:
          python-version: "3.10"
      - name: Install uv
        uses: astral-sh/setup-uv@v10.0.0
        with:
          enable-cache: true
      - name: Install Dependencies
        run: |
          uv sync --locked --group dev
      - name: mypy
        run: |
          make mypy
