-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (51 loc) · 1.33 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
minversion = 4.4.0
envlist =
clear-coverage
quality
py{39,310}-django{42}
compute-coverage
skip_missing_interpreters = True
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = djangocms_oidc_form_fields.tests.settings
deps =
coverage
django42: django==4.2.*
commands =
coverage run --parallel-mode --source=djangocms_oidc_form_fields --branch -m django test {posargs}
[testenv:clear-coverage]
basepython = python3.9
depends =
extras =
commands =
coverage erase
[testenv:codecov]
depends = clear-coverage
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands = codecov
[testenv:compute-coverage]
basepython = python3.9
depends =
py{39,310}-django{42}
extras =
parallel_show_output = True
commands =
coverage combine
coverage report --show-missing --include=*/tests/* --fail-under=100
coverage report --show-missing --include=djangocms_oidc_form_fields/* --omit=*/tests/*
coverage html
[testenv:quality]
basepython = python3.9
depends =
extras = quality
# Do not fail on first error, but run all the checks
ignore_errors = True
commands =
isort --check-only --diff djangocms_oidc_form_fields
flake8 --format=pylint --show-source djangocms_oidc_form_fields
[travis]
python =
3.9: quality, py39-django{42}, compute-coverage, codecov
3.10: quality, py310-django{42}, compute-coverage, codecov