-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
42 lines (37 loc) · 834 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
40
41
[tox]
envlist =
py{38,311,312}-django{42}-drf{latest} # Django 4.2 is not supported by DRF < 3.14
quality
[pytest]
DJANGO_SETTINGS_MODULE = test_settings
addopts = --cov edx_api_doc_tools --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements
[testenv]
deps =
django42: Django>=4.2,<4.3
drflatest: djangorestframework
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
allowlist_externals =
make
rm
deps =
-r{toxinidir}/requirements/doc.txt
commands =
make build_docs
[testenv:quality]
setenv =
PYTHONPATH = {toxinidir}
allowlist_externals =
make
rm
deps =
setuptools
-r{toxinidir}/requirements/quality.txt
commands =
make quality