name: Mypy
permissions:
  contents: read

on: [ push, pull_request ]

env:
  DEFAULT_PYTHON: "3.12"

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