CI: docs: fail on warning (MR 2506)

This commit is contained in:
Oliver Smith 2024-12-03 06:31:27 +01:00 committed by Newbyte
parent 77125ff9fb
commit 559710c69a
No known key found for this signature in database
GPG key ID: ACD854892B38D898
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@ if [ "$fail" -eq 1 ]; then
fi
sphinx-build \
--fail-on-warning \
docs \
public \

View file

@ -90,6 +90,9 @@ mypy:
docs:
stage: test
# py3-sphinx >= 7.3 is needed for --fail-on-warning
# alpine:3.20 is on py3-sphinx 7.2.x
image: alpine:edge
script:
- ".ci/docs.sh"
artifacts: