@@ -57,15 +57,23 @@ jobs:
57
57
-name :Get list of changed files
58
58
id :changed_files
59
59
uses :jitterbit/get-changed-files@v1
60
- -name :' Build with nitpicks'
60
+ -name :' Buildchanged files with nitpicks'
61
61
continue-on-error :true
62
62
run :|
63
63
# Mark files the pull request modified
64
64
touch ${{ steps.changed_files.outputs.added_modified }}
65
- # Build docs with the '-n' (nitpicky ) option, convert warnings
66
- make -C Doc/ PYTHON=../python SPHINXOPTS="-q -- keep-going -n " html 2>&1 |
65
+ # Build docs with the '-n' (nit-picky ) option, convert warnings
66
+ make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -- keep-going" html 2>&1 |
67
67
python Doc/tools/warnings-to-gh-actions.py
68
68
69
+ # Ensure some files always pass Sphinx nitpicks (missing references)
70
+ -name :' Build others with nitpicks'
71
+ run :|
72
+ # Mark files that must pass nit-picky
73
+ touch Doc/whatsnew/3.12.rst
74
+ # Build docs with the '-n' (nit-picky) option, convert warnings to errors (-W)
75
+ make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -W --keep-going" html 2>&1
76
+
69
77
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
70
78
doctest :
71
79
name :' Doctest'