Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: split peripheral to format.yml and mypy.yml #62

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/peripheral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,31 @@ on:
- master

jobs:
peripheral:
formatting:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: pip install formatters and mypy
- name: pip install formatters
run: |
pip3 install mypy flake8 isort
pip3 install flake8 isort
- name: check by isort and flake8
run: |
python3 -m isort example/ test/ node_script/
python3 -m flake8 example/ test/ node_script/

static_type_check:
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: pip install mypy
run: |
pip3 install mypy
- 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/
Loading