3131 "examples/**.py"
3232 ]'
3333
34+ black_latest_3_11 :
35+ needs : pre_job
36+ if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v1
40+ - uses : actions/setup-python@v1
41+ with :
42+ python-version : ' 3.11'
43+
44+ - name : install mypy
45+ run : |
46+ pip install -r requirements.txt
47+ pip install black
48+ - name : black
49+ run : black --check .
50+
3451 mypy_latest_3_11 :
3552 needs : pre_job
3653 if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
4966 - name : mypy
5067 run : mypy --install-types .
5168
52- unittest_latest_3_11 :
53- needs : pre_job
54- if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
55- runs-on : ubuntu-latest
56- steps :
57- - uses : actions/checkout@v1
58- - uses : actions/setup-python@v1
59- with :
60- python-version : ' 3.11'
61-
62- - name : install dependencies
63- run : pip install -r requirements.txt
64- - name : unittest
65- run : python -m unittest discover
66-
6769 packagetest_latest_3_11 :
6870 needs : pre_job
6971 if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
@@ -83,23 +85,20 @@ jobs:
8385 - name : toptest
8486 run : cd examples && python test_blinky.py
8587
86- mypy_latest_3_9 :
88+ unittest_latest_3_11 :
8789 needs : pre_job
8890 if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
8991 runs-on : ubuntu-latest
9092 steps :
91- - uses : actions/checkout@v1
92- - uses : actions/setup-python@v1
93- with :
94- python-version : ' 3.9 '
93+ - uses : actions/checkout@v1
94+ - uses : actions/setup-python@v1
95+ with :
96+ python-version : ' 3.11 '
9597
96- - name : install mypy
97- run : |
98- pip install -r requirements.txt
99- pip install mypy mypy-protobuf
100- mypy --version
101- - name : mypy
102- run : mypy --install-types .
98+ - name : install dependencies
99+ run : pip install -r requirements.txt
100+ - name : unittest
101+ run : python -m unittest discover
103102
104103 unittest_latest_3_9 :
105104 needs : pre_job
0 commit comments