build.yml: Run mypy --ignore-missing-imports (#4276)

* build.yml: Run mypy --ignore-missing-imports

* pip install mypy

* Remove failing directories

* Add fractals and drop python-m
This commit is contained in:
Christian Clauss 2021-03-20 07:01:13 +01:00 committed by GitHub
parent 89a43c81e5
commit 8d7ef6a7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,22 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip setuptools six wheel python -m pip install --upgrade pip setuptools six wheel
python -m pip install pytest-cov -r requirements.txt python -m pip install mypy pytest-cov -r requirements.txt
# FIXME: #4052 fix mypy errors in other directories and add them here
- run: mypy --ignore-missing-imports
backtracking
bit_manipulation
blockchain
boolean_algebra
cellular_automata
computer_vision
fractals
fuzzy_logic
genetic_algorithm
geodesy
knapsack
networking_flow
scheduling sorts
- name: Run tests - name: Run tests
run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. . run: pytest --doctest-modules --ignore=project_euler/ --ignore=scripts/ --cov-report=term-missing:skip-covered --cov=. .
- if: ${{ success() }} - if: ${{ success() }}