-
-
Notifications
You must be signed in to change notification settings - Fork 473
/
Copy pathtox.ini
42 lines (38 loc) · 937 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
42
[tox]
requires >= 4.22
isolated_build = True
envlist =
py{39,310,311,312,313,py39,py310}
py{39,310,311,312,313,py39,py310}-{clients,flask,django,jose}
docs
coverage
[testenv]
dependency_groups =
dev
jose: jose
clients: clients
flask: flask
django: django
setenv =
TESTPATH=tests/core
jose: TESTPATH=tests/jose
clients: TESTPATH=tests/clients
clients: DJANGO_SETTINGS_MODULE=tests.clients.test_django.settings
flask: TESTPATH=tests/flask
django: TESTPATH=tests/django
django: DJANGO_SETTINGS_MODULE=tests.django.settings
commands =
coverage run --source=authlib -p -m pytest {posargs: {env:TESTPATH}}
[testenv:docs]
dependency_groups =
clients
docs
flask
commands =
sphinx-build --builder html --write-all --fail-on-warning docs build/_html
[testenv:coverage]
skip_install = true
commands =
coverage combine
coverage report
coverage html