Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2de64cf

Browse files
committed
chore(ci): add coverage and docs jobs
1 parent1502079 commit2de64cf

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

‎.github/workflows/docs.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

‎.github/workflows/test.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
TOXENV:${{ matrix.toxenv }}
3131
run:tox
32+
3233
functional:
3334
runs-on:ubuntu-20.04
3435
strategy:
@@ -46,3 +47,25 @@ jobs:
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp