sphinx-action
sphinx-action copied to clipboard
Fail build for sphinx error (and warning)
Thanks for the nice action! I was wondering though, can I also fail my build on sphinx errors and warnings?
Sorry for the late reply Tom, but you should be able to use the Sphinx option:
-W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
Follow the example in the advanced usage section and use a custom build command like
build-command: "sphinx-build -W -b html . _build"