6565      continue-on-error : true 
6666      run : | 
6767        set -Eeuo pipefail 
68-         # Build docs with the '-n' ( nit-picky)  option; write warnings to file 
69-         make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -W  --keep-going -w  sphinx-warnings.txt" html 
68+         # Build docs with the nit-picky option; write warnings to file 
69+         make -C Doc/ PYTHON=../python SPHINXOPTS="--quiet --nitpicky --fail-on-warning  --keep-going --warning-file  sphinx-warnings.txt" html 
7070name : ' Check warnings' 
7171      if : github.event_name == 'pull_request' 
7272      run : | 
7676          --fail-if-improved \ 
7777          --fail-if-new-news-nit 
7878
79- #  This build doesn't use problem matchers or check annotations
80-   build_doc_oldest_supported_sphinx :
81-     name : ' Docs (Oldest Sphinx)' 
82-     runs-on : ubuntu-latest 
83-     timeout-minutes : 60 
84-     steps :
85-     - uses : actions/checkout@v4 
86-       with :
87-         persist-credentials : false 
88-     - name : ' Set up Python' 
89-       uses : actions/setup-python@v5 
90-       with :
91-         python-version : ' 3.13' #  known to work with Sphinx 7.2.6
92-         cache : ' pip' 
93-         cache-dependency-path : ' Doc/requirements-oldest-sphinx.txt' 
94-     - name : ' Install build dependencies' 
95-       run : make -C Doc/ venv REQUIREMENTS="requirements-oldest-sphinx.txt" 
96-     - name : ' Build HTML documentation' 
97-       run : make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html 
98- 
9979#  Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
10080  doctest :
10181    name : ' Doctest' 
@@ -121,4 +101,4 @@ jobs:
121101      run : make -C Doc/ PYTHON=../python venv 
122102    #  Use "xvfb-run" since some doctest tests open GUI windows
123103    - name : ' Run documentation doctest' 
124-       run : xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="-W  --keep-going" doctest 
104+       run : xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="--fail-on-warning  --keep-going" doctest 
0 commit comments