mypy.yml 644 B

1234567891011121314151617181920212223
  1. name: Run Mypy
  2. on: [push, pull_request]
  3. jobs:
  4. mypy:
  5. runs-on: ${{ matrix.os }}
  6. strategy:
  7. matrix:
  8. os: [ubuntu-latest, macos-latest, windows-latest]
  9. python-version: ['3.8', '3.11']
  10. fail-fast: false
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Set up Python ${{ matrix.python-version }}
  14. uses: actions/setup-python@v4
  15. with:
  16. python-version: ${{ matrix.python-version }}
  17. - name: Install dependencies
  18. run: |
  19. python -m pip install --upgrade pip
  20. pip install mypy==1.4.0
  21. - name: Run mypy on direct
  22. run: python tests/run_mypy.py