DM-44751: Add mypy check as required GHA before merging #2
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 pydantic | |
- name: Run mypy | |
run: mypy . |