Skip to content

Commit

Permalink
fix: add link check tox env
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Jun 10, 2024
1 parent a5e4be0 commit 1c61a30
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ description = Default tox environments list
envlist =
code-style
doc-style
{py38,py39,py310,py311,py312}{,-coverage}
doc
{py39,py310,py311,py312}{,-coverage}
doc-{links,html}
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build

[testenv]
description = Checks for project unit tests and coverage (if desired)
basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
tests39: python3.9
tests310: python3.10
tests311: python3.11
tests312: python3.12
py: python3
{style,reformat,doc}: python3
{code-style,doc-links,doc-html, tests}: python3
setenv =
PYTHONUNBUFFERED = yes
coverage: PYTEST_EXTRA_ARGS = --cov=ansys.mapdl --cov-report=term --cov-report=xml:.cov/xml --cov-report=html:.cov/html
Expand All @@ -43,8 +43,14 @@ commands =
vale sync --config="{toxinidir}/doc/.vale.ini"
vale --config="{toxinidir}/doc/.vale.ini" "{toxinidir}/doc"

[testenv:doc]
[testenv:doc-{links, html}]
description = Check if documentation generates properly
setenv =
links: BUILDER = linkcheck
html: BUILDER = html
passenv =
BUILD_API
BUILD_EXAMPLES
extras = doc
commands =
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxinidir}/doc/_build/{env:BUILDER}" --color -vW -b {env:BUILDER} -j auto

0 comments on commit 1c61a30

Please sign in to comment.