jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/858702 )
Change subject: [doc] backport tox to tests branch ......................................................................
[doc] backport tox to tests branch
Bug: T322979 Change-Id: Id082766bb8e6ac03c3d0f3ffe484a2f7d3e69ab9 --- M tox.ini 1 file changed, 30 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tox.ini b/tox.ini index c26452c..69ebd75 100644 --- a/tox.ini +++ b/tox.ini @@ -37,7 +37,8 @@ hacking: flake8 --format=default {posargs}
deeptest: python {[params]generate_user_files} - deeptest: python -m unittest discover -vv -p "*_tests.py" + deeptest-py36: python -m unittest discover -vv -p "*_tests.py" + deeptest-py39: pytest
fasttest: python {[params]generate_user_files} fasttest: pytest --version @@ -59,7 +60,9 @@ deeptest: .[html] deeptest: .[mwparserfromhell] deeptest: .[scripts] - deeptest: .[wikitextparser] + deeptest-py39: .[wikitextparser] + deeptest-py39: pytest >= 7.0.1 + deeptest-py39: pytest-subtests >= 0.3.2
[testenv:commit-message] basepython = python3 @@ -82,11 +85,26 @@ commands = {posargs}
[testenv:doc] +basepython = python3.7 commands = sphinx-build -M html ./docs ./docs/_build -j auto +deps = + -rrequirements.txt + -rdocs/requirements.txt + +[testenv:rstcheck] +basepython = python3.7 +commands = rstcheck --version rstcheck -r --report-level WARNING --ignore-roles api,phab . +deps = + -rrequirements.txt + -rdocs/requirements.txt + +[testenv:sphinx] basepython = python3.7 +commands = + sphinx-build -M html ./docs ./docs/_build -j auto -D html_theme=nature deps = -rrequirements.txt -rdocs/requirements.txt
pywikibot-commits@lists.wikimedia.org