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