Merge pull request #38 from elansteam/dev #10
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: Python MyPy Check | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install mypy | |
- name: Run MyPy | |
run: | | |
mypy --strict ${PWD} > mypy_output.txt | |
continue-on-error: true | |
- name: Check MyPy results | |
run: | | |
cat mypy_output.txt | |
if ! grep -q "Success: no issues found in" mypy_output.txt; then | |
echo "MyPy issues found!" | |
exit 1 | |
fi |