-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (37 loc) · 789 Bytes
/
tox.ini
File metadata and controls
41 lines (37 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tox]
envlist = py312-django{42,52}, quality, docs
[pytest]
DJANGO_SETTINGS_MODULE = xblock.test.settings
addopts = --cov xblock
filterwarnings = always
norecursedirs = .* docs requirements
[testenv]
deps =
django42: Django>=4.2,<5.0
django52: Django>=5.2,<6.0
-r requirements/test.txt
changedir = {envsitepackagesdir}
commands =
python -Wd -m pytest {posargs:xblock}
python -m coverage xml
mv coverage.xml {toxinidir}
allowlist_externals =
make
mv
[testenv:docs]
basepython =
python3.12
changedir =
{toxinidir}/docs
deps =
-r requirements/doc.txt
commands =
make html
[testenv:quality]
deps =
django42: Django>=4.2,<5.0
django52: Django>=5.2,<6.0
-r requirements/test.txt
changedir = {toxinidir}
commands =
make quality