-
Notifications
You must be signed in to change notification settings - Fork 136
/
tox.ini
57 lines (49 loc) · 1.22 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
[pytest]
python_files = *_test.py test*.py
testpaths = tests
norecursedirs = tests/django_example
[tox]
envlist = begin,py{py3,37,38,39,310},pytest,py38-django{lts,curr},end,quality
[gh-actions]
python =
3.7: py37,pytest
3.8: begin,py38,py38-django{lts,curr},end,quality
3.9: py39
3.10: py310
[testenv]
deps =
coverage
codecov>=1.4.0
coveralls
djangolts,pytest: django~=3.2.0
djangocurr: django~=4.0.0
pytest: pytest
lxml>=3.6.0
commands =
coverage run --append setup.py test
coverage report --omit='.tox/*'
python -m xmlrunner discover -p test_xmlrunner_output
codecov -e TOXENV
-coveralls
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT CODECOV_TOKEN COVERALLS_REPO_TOKEN GITHUB_ACTION GITHUB_HEAD_REF GITHUB_REF GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_SHA
[testenv:pytest]
commands = pytest
[testenv:begin]
commands = coverage erase
[testenv:end]
commands =
coverage report
coverage html
[testenv:quality]
ignore_outcome = True
deps =
mccabe
pylint
flake8
pyroma
pep257
commands =
pylint xmlrunner tests
flake8 --max-complexity 10
pyroma .
pep257