forked from openedx/XBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (35 loc) · 730 Bytes
/
tox.ini
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
[tox]
envlist = py{311,312}-django{42}, 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
-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.11
changedir =
{toxinidir}/docs
deps =
-r requirements/doc.txt
commands =
make html
[testenv:quality]
deps =
django42: Django>=4.2,<5.0
-r requirements/test.txt
changedir = {toxinidir}
commands =
make quality