Show More
@@ -1,35 +1,36 b'' | |||||
1 | name: Build docs |
|
1 | name: Build docs | |
2 |
|
2 | |||
3 | on: [push, pull_request] |
|
3 | on: [push, pull_request] | |
4 |
|
4 | |||
5 | jobs: |
|
5 | jobs: | |
6 | build: |
|
6 | build: | |
7 | runs-on: ubuntu-latest |
|
7 | runs-on: ubuntu-latest | |
8 |
|
8 | |||
9 | steps: |
|
9 | steps: | |
10 | - uses: actions/checkout@v2 |
|
10 | - uses: actions/checkout@v2 | |
11 | - name: Set up Python 3.8 |
|
11 | - name: Set up Python 3.8 | |
12 | uses: actions/setup-python@v2 |
|
12 | uses: actions/setup-python@v2 | |
13 | with: |
|
13 | with: | |
14 | python-version: 3.8 |
|
14 | python-version: 3.8 | |
15 | - name: Install Graphviz |
|
15 | - name: Install Graphviz | |
16 | run: | |
|
16 | run: | | |
17 | sudo apt-get update |
|
17 | sudo apt-get update | |
18 | sudo apt-get install graphviz |
|
18 | sudo apt-get install graphviz | |
19 | - name: Install Python dependencies |
|
19 | - name: Install Python dependencies | |
20 | run: | |
|
20 | run: | | |
21 | python -m pip install --upgrade pip setuptools coverage |
|
21 | python -m pip install --upgrade pip setuptools coverage rstvalidator | |
22 | pip install -r docs/requirements.txt |
|
22 | pip install -r docs/requirements.txt | |
23 | - name: Build docs |
|
23 | - name: Build docs | |
24 | run: | |
|
24 | run: | | |
|
25 | python -m rstvalidator long_description.rst | |||
25 | python tools/fixup_whats_new_pr.py |
|
26 | python tools/fixup_whats_new_pr.py | |
26 | make -C docs/ html SPHINXOPTS="-W" \ |
|
27 | make -C docs/ html SPHINXOPTS="-W" \ | |
27 | PYTHON="coverage run -a" \ |
|
28 | PYTHON="coverage run -a" \ | |
28 | SPHINXBUILD="coverage run -a -m sphinx.cmd.build" |
|
29 | SPHINXBUILD="coverage run -a -m sphinx.cmd.build" | |
29 | - name: Generate coverage xml |
|
30 | - name: Generate coverage xml | |
30 | run: | |
|
31 | run: | | |
31 | coverage combine `find . -name .coverage\*` && coverage xml |
|
32 | coverage combine `find . -name .coverage\*` && coverage xml | |
32 | - name: Upload coverage to Codecov |
|
33 | - name: Upload coverage to Codecov | |
33 | uses: codecov/codecov-action@v2 |
|
34 | uses: codecov/codecov-action@v2 | |
34 | with: |
|
35 | with: | |
35 | name: Docs |
|
36 | name: Docs |
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file |
General Comments 0
You need to be logged in to leave comments.
Login now