diff options
-rw-r--r-- | .github/workflows/checks.yaml | 6 | ||||
-rw-r--r-- | tox.ini | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index e1cb266fb..5ec3be43b 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -180,10 +180,12 @@ jobs: run: | echo "Failed to restore Python venv from cache" exit 1 + - name: Install tox + run: | + pip install -U tox - name: Run checks on documentation code examples run: | - . venv/bin/activate - pytest doc/test_messages_documentation.py + tox -e test_doc - name: Check documentation build and links run: | . venv/bin/activate @@ -60,6 +60,12 @@ deps = commands = sphinx-build -W -b html -d _build/doctrees . _build/html +[testenv:test_doc] +deps = + -r {toxinidir}/requirements_test.txt +commands = + pytest {toxinidir}/doc/test_messages_documentation.py + [testenv:benchmark] deps = -r {toxinidir}/requirements_test.txt |