allianceauth/tox.ini
2025-03-06 09:59:08 +10:00

34 lines
947 B
INI

[tox]
requires =
tox>=4.2
env_list =
docs
py{313, 312, 311, 310}-{all, core}
no_package = true
usedevelop = true
[testenv]
base_python =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
deps =
coverage
set_env =
all: DJANGO_SETTINGS_MODULE = tests.settings_all
core: DJANGO_SETTINGS_MODULE = tests.settings_core
commands =
all: coverage run runtests.py -v 2 --debug-mode
core: coverage run runtests.py allianceauth.authentication.tests.test_app_settings -v 2 --debug-mode
all: coverage report -m
all: coverage xml
install_command = pip install -e ".[test]" -U {opts} {packages}
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
base_python = python3.12
commands =
sphinx-build -T -E -b html -d "{toxworkdir}/docs_doctree" -D language=en docs "{toxworkdir}/docs_out" {posargs}
install_command = pip install -e ".[docs]" -U {opts} {packages}