Skip to content

Commit 44190a6

Browse files
committed
ci: split peripheral to format.yml and mypy.yml
1 parent 7ba37a3 commit 44190a6

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.github/workflows/format.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check format:
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
peripheral:
13+
runs-on: ubuntu-20.04
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v2
17+
- name: pip install formatters
18+
run: |
19+
pip3 install flake8 isort
20+
- name: check by isort and flake8
21+
run: |
22+
python3 -m isort example/ test/ node_script/ src/
23+
python3 -m flake8 example/ test/ node_script/ src/

.github/workflows/peripheral.yml .github/workflows/mypy.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Peripheral test
1+
name: Check mypy
22

33
on:
44
push:
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Checkout Code
1616
uses: actions/checkout@v2
17-
- name: pip install formatters and mypy
17+
- name: pip install mypy
1818
run: |
1919
pip3 install mypy flake8 isort
2020
- name: check by mypy
@@ -24,7 +24,3 @@ jobs:
2424
pip3 install numpy==1.23 # to enable numpy's type checking
2525
mypy --version
2626
mypy .
27-
- name: check by isort and flake8
28-
run: |
29-
python3 -m isort example/ test/ node_script/
30-
python3 -m flake8 example/ test/ node_script/

0 commit comments

Comments
 (0)