Skip to content

Commit

Permalink
bpo-46016: GHA Doc job now also runs "make check" (GH-30009)
Browse files Browse the repository at this point in the history
The GitHub Action documentation job now also runs "make check" to
check the documentation.
  • Loading branch information
vstinner committed Dec 9, 2021
1 parent c8749b5 commit da3cf43
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/doc.yml
Expand Up @@ -38,8 +38,15 @@ jobs:
run: make -j4
- name: 'Install build dependencies'
run: make -C Doc/ PYTHON=../python venv
- name: 'Build documentation'
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest html
# Run "check doctest html" as 3 steps to get a more readable output
# in the web UI
- name: 'Check documentation'
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" check
# Use "xvfb-run" since some doctest tests open GUI windows
- name: 'Run documentation doctest'
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest
- name: 'Build HTML documentation'
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" html
- name: 'Upload'
uses: actions/upload-artifact@v2.2.4
with:
Expand Down

0 comments on commit da3cf43

Please sign in to comment.