DM-44751: Add mypy check as required GHA before merging #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mypy Type Check | |
on: pull_request | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install mypy | |
run: | | |
python -m pip install --upgrade pip | |
pip install mypy==1.7.1 pydantic numpy | |
- name: Run mypy | |
run: mypy . --config-file mypy.ini |