1- name : " Lint / Unit tests / Cover / Mypy "
1+ name : " Unit tests"
22
33on :
44 pull_request :
55 branches :
66 - main
77
8-
98jobs :
10-
11- run-lint-mypy :
12- name : lint-mypy
13- runs-on : ubuntu-latest
14-
15- steps :
16-
17- - name : Checkout
18- uses : actions/checkout@v2
19-
20- - name : Setup Python
21- uses : actions/setup-python@v2
22- with :
23- python-version : " 3.10"
24-
25- - name : Install nox
26- run : |
27- python -m pip install --upgrade setuptools pip wheel
28- python -m pip install nox
29-
30- - name : Run lint
31- run : |
32- nox -s lint
33-
34- - name : Run lint_setup_py
35- run : |
36- nox -s lint_setup_py
37-
38- - name : Run mypy
39- run : |
40- nox -s mypy
41-
429 run-unittests :
4310 name : unit-${{ matrix.python }}
4411 runs-on : ubuntu-latest
@@ -50,28 +17,22 @@ jobs:
5017 - " 3.8"
5118 - " 3.9"
5219 - " 3.10"
53-
5420 steps :
55-
5621 - name : Checkout
5722 uses : actions/checkout@v2
58-
5923 - name : Setup Python
6024 uses : actions/setup-python@v2
6125 with :
6226 python-version : ${{ matrix.python }}
63-
6427 - name : Install nox
6528 run : |
6629 python -m pip install --upgrade setuptools pip wheel
6730 python -m pip install nox
68-
6931 - name : Run unit tests
7032 env :
7133 COVERAGE_FILE : .coverage-${{matrix.python }}
7234 run : |
7335 nox -s unit-${{ matrix.python }}
74-
7536 - name : Upload coverage results
7637 uses : actions/upload-artifact@v2
7738 with :
@@ -83,28 +44,22 @@ jobs:
8344 runs-on : ubuntu-latest
8445 needs :
8546 - run-unittests
86-
8747 steps :
88-
8948 - name : Checkout
9049 uses : actions/checkout@v2
91-
9250 - name : Setup Python
9351 uses : actions/setup-python@v2
9452 with :
9553 python-version : " 3.10"
96-
9754 - name : Install coverage
9855 run : |
9956 python -m pip install --upgrade setuptools pip wheel
10057 python -m pip install coverage
101-
10258 - name : Download coverage results
10359 uses : actions/download-artifact@v2
10460 with :
10561 name : coverage-artifacts
10662 path : .coverage-results/
107-
10863 - name : Report coverage results
10964 run : |
11065 coverage combine .coverage-results/.coverage*
0 commit comments