fix: lock predictor while updating it (#64) #140
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: Peripheral test | |
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 formatters and 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 . | |
- name: check by isort and flake8 | |
run: | | |
python3 -m isort example/ test/ node_script/ | |
python3 -m flake8 example/ test/ node_script/ |