Skip to content

Commit fc8aff1

Browse files
committed
Fail docs build on warnings
1 parent f285929 commit fc8aff1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Test
3737
run: poetry run pytest
3838
- name: Build docs
39-
run: poetry run sphinx-build -b html docs docs/_build/html
39+
run: poetry run sphinx-build -b html docs docs/_build/html --fail-on-warning
4040

4141
docker-image:
4242
needs: [test]

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
6+
SPHINXOPTS ?= --fail-on-warning
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build

0 commit comments

Comments
 (0)