Skip to content

Commit

Permalink
only run Sphinx' linkcheck with Python 3.10 to prevent failure by DDO…
Browse files Browse the repository at this point in the history
…S protection services
  • Loading branch information
JasperCraeghs committed Dec 14, 2024
1 parent 88b1a7d commit 4e4e704
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
run: tox -e py
- name: Build HTML documentation
run: tox -e docs
- name: Checks hyperlinks in documentation
if: matrix.python-version == '3.10'
run: tox -e docs_linkcheck
- name: Calculate coverage
run: tox -e coverage
- name: Codecov uploader
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ deps =
commands =
sphinx-build {posargs:-E} -b doctest docs docs/_build
sphinx-build {posargs:-E} -b html docs docs/_build

[testenv:docs_linkcheck]
deps =
-r{toxinidir}/docs/requirements.txt
commands =
sphinx-build -b linkcheck docs docs/_build

[testenv:check]
Expand Down

0 comments on commit 4e4e704

Please sign in to comment.