@@ -12,7 +12,7 @@ min_version = 4.6
12
12
# .github/workflows/main.yml is set up to test with 3.11, 3.12 and 3.13 in parallel.
13
13
# Therefore, use three environments: One with 3.11, one with 3.12 and one with 3.13:
14
14
#
15
- envlist = py311-covcp-check-pytype-mdreport, py312-cov, py313-cov-lint-pyright
15
+ envlist = py311-covcp-check-pytype-mdreport, py312-cov-docs , py313-cov-lint-pyright
16
16
isolated_build = true
17
17
skip_missing_interpreters = true
18
18
requires =
@@ -37,6 +37,7 @@ commands =
37
37
description = Run in a {basepython} virtualenv:
38
38
cov: {[cov]description}
39
39
covcp: Copy the generated .converage and coverage.xml to the UPLOAD_DIR dir
40
+ docs: {[docs]description}
40
41
fox: {[fox]description}
41
42
lint: {[lint]description}
42
43
mdreport: Make a test report (which is shown in the GitHub Actions Summary Page)
@@ -56,12 +57,14 @@ deps =
56
57
{cov,covcp,fox}: coverage[toml]
57
58
{cov,covcp,fox}: diff-cover
58
59
{lint,fox}: {[lint]deps}
60
+ docs: {[docs]deps}
59
61
pyright: pyright
60
62
allowlist_externals =
61
63
{cov,covcp,fox,check,lint,test,mdreport}: echo
62
64
{cov,covcp,fox,check,lint,test,mdreport}: sh
63
65
{cov,covcp,fox}: cp
64
66
check: cat
67
+ docs: make
65
68
fox: firefox
66
69
passenv =
67
70
{pytype,lint,test}: GITHUB_STEP_SUMMARY
@@ -99,6 +102,7 @@ setenv =
99
102
lint: ENVLOGDIR ={envlogdir}
100
103
{[cov]setenv}
101
104
commands =
105
+ docs: {[docs]commands}
102
106
lint: {[lint]commands}
103
107
pyright: {[pyright]commands}
104
108
check: {[check]commands}
@@ -126,6 +130,13 @@ commands =
126
130
--html-report {envlogdir}/coverage-diff.html \
127
131
{envlogdir}/coverage.xml
128
132
133
+
134
+ [docs]
135
+ description = Build the documentation to check for errors
136
+ deps = -r docs/requirements.txt
137
+ commands = make -C docs html SPHINXOPTS =" --fail-on-warning"
138
+
139
+
129
140
[lint]
130
141
description = Run pylint and fail on warnings remaining on lines in the diff to master
131
142
deps = pylint
0 commit comments