name: Mypy
permissions:
  contents: read

on: [ push, pull_request ]

env:
  DEFAULT_PYTHON: "3.12"

jobs:
  mypy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-python@v6
        with:
          python-version: ${{ env.DEFAULT_PYTHON }}
          check-latest: true
      - run: pip install -r requirements_dev.txt
      - run: mypy cookidoo_api tests smoke_test
