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

Commit57be0cd

Browse files
authored
ci(python): run lint / unit tests / docs as GH actions (#1333)
* ci: run lint / unit tests / docs as GH actions* remove hardcoded versions* remove jinja escaping
1 parent0226158 commit57be0cd

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
pull_request:
3+
branches:
4+
-main
5+
name:docs
6+
jobs:
7+
docs:
8+
runs-on:ubuntu-latest
9+
steps:
10+
-name:Checkout
11+
uses:actions/checkout@v2
12+
-name:Setup Python
13+
uses:actions/setup-python@v2
14+
with:
15+
python-version:"{{ unit_test_python_versions | last }}"
16+
-name:Install nox
17+
run:|
18+
python -m pip install --upgrade setuptools pip wheel
19+
python -m pip install nox
20+
-name:Run docs
21+
run:|
22+
nox -s docs
23+
docfx:
24+
runs-on:ubuntu-latest
25+
steps:
26+
-name:Checkout
27+
uses:actions/checkout@v2
28+
-name:Setup Python
29+
uses:actions/setup-python@v2
30+
with:
31+
python-version:"{{ unit_test_python_versions | last }}"
32+
-name:Install nox
33+
run:|
34+
python -m pip install --upgrade setuptools pip wheel
35+
python -m pip install nox
36+
-name:Run docfx
37+
run:|
38+
nox -s docfx
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
pull_request:
3+
branches:
4+
-main
5+
name:lint
6+
jobs:
7+
lint:
8+
runs-on:ubuntu-latest
9+
steps:
10+
-name:Checkout
11+
uses:actions/checkout@v2
12+
-name:Setup Python
13+
uses:actions/setup-python@v2
14+
with:
15+
python-version:"{{ unit_test_python_versions | last }}"
16+
-name:Install nox
17+
run:|
18+
python -m pip install --upgrade setuptools pip wheel
19+
python -m pip install nox
20+
-name:Run lint
21+
run:|
22+
nox -s lint
23+
-name:Run lint_setup_py
24+
run:|
25+
nox -s lint_setup_py
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on:
2+
pull_request:
3+
branches:
4+
-main
5+
name:unittest
6+
jobs:
7+
unit:
8+
runs-on:ubuntu-latest
9+
strategy:
10+
matrix:
11+
python:{{unit_test_python_versions}}
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:${{ '{{' }} matrix.python {{ '}}' }}
19+
-name:Install nox
20+
run:|
21+
python -m pip install --upgrade setuptools pip wheel
22+
python -m pip install nox
23+
-name:Run unit tests
24+
env:
25+
COVERAGE_FILE:.coverage-${{ '{{' }} matrix.python {{ '}}' }}
26+
run:|
27+
nox -s unit-${{ '{{' }} matrix.python {{ '}}' }}
28+
-name:Upload coverage results
29+
uses:actions/upload-artifact@v2
30+
with:
31+
name:coverage-artifacts
32+
path:.coverage-${{ '{{' }} matrix.python {{ '}}' }}
33+
34+
cover:
35+
runs-on:ubuntu-latest
36+
needs:
37+
-unit
38+
steps:
39+
-name:Checkout
40+
uses:actions/checkout@v2
41+
-name:Setup Python
42+
uses:actions/setup-python@v2
43+
with:
44+
python-version:"{{ unit_test_python_versions | last }}"
45+
-name:Install coverage
46+
run:|
47+
python -m pip install --upgrade setuptools pip wheel
48+
python -m pip install coverage
49+
-name:Download coverage results
50+
uses:actions/download-artifact@v2
51+
with:
52+
name:coverage-artifacts
53+
path:.coverage-results/
54+
-name:Report coverage results
55+
run:|
56+
coverage combine .coverage-results/.coverage*
57+
coverage report --show-missing --fail-under=100

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp