This repository was archived by the owner on Sep 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Cover"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ report-coverage :
10+ name : cover
11+ runs-on : ubuntu-latest
12+ needs :
13+ - run-unittests
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v2
17+ - name : Setup Python
18+ uses : actions/setup-python@v2
19+ with :
20+ python-version : " 3.10"
21+ - name : Install coverage
22+ run : |
23+ python -m pip install --upgrade setuptools pip wheel
24+ python -m pip install coverage
25+ - name : Download coverage results
26+ uses : actions/download-artifact@v2
27+ with :
28+ name : coverage-artifacts
29+ path : .coverage-results/
30+ - name : Report coverage results
31+ run : |
32+ coverage combine .coverage-results/.coverage*
33+ coverage report --show-missing --fail-under=100
Original file line number Diff line number Diff line change 1+ name : " Lint"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ run-lint :
10+ name : lint
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+ - name : Setup Python
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : " 3.10"
19+ - name : Install nox
20+ run : |
21+ python -m pip install --upgrade setuptools pip wheel
22+ python -m pip install nox
23+ - name : Run lint
24+ run : |
25+ nox -s lint
26+ - name : Run lint_setup_py
27+ run : |
28+ nox -s lint_setup_py
Original file line number Diff line number Diff line change 1+ name : " Unit tests"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ run-unittests :
10+ name : unit${{ matrix.option }}-${{ matrix.python }}
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python :
15+ - " 3.6"
16+ - " 3.7"
17+ - " 3.8"
18+ - " 3.9"
19+ - " 3.10"
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v2
23+ - name : Setup Python
24+ uses : actions/setup-python@v2
25+ with :
26+ python-version : ${{ matrix.python }}
27+ - name : Install nox
28+ run : |
29+ python -m pip install --upgrade setuptools pip wheel
30+ python -m pip install nox
31+ - name : Run unit tests
32+ env :
33+ COVERAGE_FILE : .coverage${{ matrix.option }}-${{matrix.python }}
34+ run : |
35+ nox -s unit${{ matrix.option }}-${{ matrix.python }}
36+ - name : Upload coverage results
37+ uses : actions/upload-artifact@v2
38+ with :
39+ name : coverage-artifacts
40+ path : .coverage${{ matrix.option }}-${{ matrix.python }}
You can’t perform that action at this time.
0 commit comments