ci: split peripheral to format.yml and mypy.yml #1
Workflow file for this run
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: Check mypy | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
peripheral: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: pip install mypy | |
run: | | |
pip3 install mypy flake8 isort | |
- name: check by mypy | |
run: | | |
rm node_script/detic node_script/third_party # remove symlinks. (cannot configure to exclude them by mypy somehow) | |
pip3 install -r requirements.txt | |
pip3 install numpy==1.23 # to enable numpy's type checking | |
mypy --version | |
mypy . |