@@ -12,7 +12,7 @@ min_version = 4.6
1212# .github/workflows/main.yml is set up to test with 3.11, 3.12 and 3.13 in parallel.
1313# Therefore, use three environments: One with 3.11, one with 3.12 and one with 3.13:
1414#
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
1616isolated_build = true
1717skip_missing_interpreters = true
1818requires =
@@ -37,6 +37,7 @@ commands =
3737description = Run in a {basepython} virtualenv:
3838 cov: {[cov]description}
3939 covcp: Copy the generated .converage and coverage.xml to the UPLOAD_DIR dir
40+ docs: {[docs]description}
4041 fox: {[fox]description}
4142 lint: {[lint]description}
4243 mdreport: Make a test report (which is shown in the GitHub Actions Summary Page)
@@ -56,12 +57,14 @@ deps =
5657 {cov,covcp,fox}: coverage[toml]
5758 {cov,covcp,fox}: diff-cover
5859 {lint,fox}: {[lint]deps}
60+ docs: {[docs]deps}
5961 pyright: pyright
6062allowlist_externals =
6163 {cov,covcp,fox,check,lint,test,mdreport}: echo
6264 {cov,covcp,fox,check,lint,test,mdreport}: sh
6365 {cov,covcp,fox}: cp
6466 check: cat
67+ docs: make
6568 fox: firefox
6669passenv =
6770 {pytype,lint,test}: GITHUB_STEP_SUMMARY
@@ -99,6 +102,7 @@ setenv =
99102 lint: ENVLOGDIR ={envlogdir}
100103 {[cov]setenv}
101104commands =
105+ docs: {[docs]commands}
102106 lint: {[lint]commands}
103107 pyright: {[pyright]commands}
104108 check: {[check]commands}
@@ -126,6 +130,13 @@ commands =
126130 --html-report {envlogdir}/coverage-diff.html \
127131 {envlogdir}/coverage.xml
128132
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+
129140[lint]
130141description = Run pylint and fail on warnings remaining on lines in the diff to master
131142deps = pylint
0 commit comments