From 559710c69a29c7f66a6f6bafb99a5583442a3c0a Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 3 Dec 2024 06:31:27 +0100 Subject: [PATCH] CI: docs: fail on warning (MR 2506) --- .ci/docs.sh | 1 + .gitlab-ci.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.ci/docs.sh b/.ci/docs.sh index 1b9b5675..625c6018 100755 --- a/.ci/docs.sh +++ b/.ci/docs.sh @@ -32,6 +32,7 @@ if [ "$fail" -eq 1 ]; then fi sphinx-build \ + --fail-on-warning \ docs \ public \ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8114a816..a629b0d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: