File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docs
2+
3+ on : [push, pull_request]
4+
5+ env :
6+ PY_COLORS : 1
7+
8+ jobs :
9+ sphinx :
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Set up Python
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : 3.8
17+ - name : Install dependencies
18+ run : pip install tox
19+ - name : Build docs
20+ env :
21+ TOXENV : docs
22+ run : tox
23+
24+ twine-check :
25+ runs-on : ubuntu-20.04
26+ steps :
27+ - uses : actions/checkout@v2
28+ - name : Set up Python
29+ uses : actions/setup-python@v2
30+ with :
31+ python-version : 3.8
32+ - name : Install dependencies
33+ run : pip install tox twine wheel
34+ - name : Check twine readme rendering
35+ env :
36+ TOXENV : twine-check
37+ run : |
38+ python3 setup.py sdist bdist_wheel
39+ tox
Original file line number Diff line number Diff line change 2929 env :
3030 TOXENV : ${{ matrix.toxenv }}
3131 run : tox
32+
3233 functional :
3334 runs-on : ubuntu-20.04
3435 strategy :
4647 env :
4748 TOXENV : ${{ matrix.toxenv }}
4849 run : tox
50+
51+ coverage :
52+ runs-on : ubuntu-20.04
53+ steps :
54+ - uses : actions/checkout@v2
55+ - name : Set up Python ${{ matrix.python-version }}
56+ uses : actions/setup-python@v2
57+ with :
58+ python-version : 3.8
59+ - name : Install dependencies
60+ run : pip install tox pytest-github-actions-annotate-failures
61+ - name : Run tests
62+ env :
63+ PY_COLORS : 1
64+ TOXENV : cover
65+ run : tox
66+ - name : Upload codecov coverage
67+ uses : codecov/codecov-action@v1
68+ with :
69+ files : ./coverage.xml
70+ flags : unit
71+ fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments