Skip to content

Commit

Permalink
ci: split peripheral to format.yml and mypy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Feb 7, 2025
1 parent 7ba37a3 commit 44190a6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check format:

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
run: |
pip3 install flake8 isort
- name: check by isort and flake8
run: |
python3 -m isort example/ test/ node_script/ src/
python3 -m flake8 example/ test/ node_script/ src/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Peripheral test
name: Check mypy

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: pip install formatters and mypy
- name: pip install mypy
run: |
pip3 install mypy flake8 isort
- name: check by mypy
Expand All @@ -24,7 +24,3 @@ jobs:
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/

0 comments on commit 44190a6

Please sign in to comment.