forked from django-ckeditor/django-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
61 lines (56 loc) · 1.34 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
58
59
60
61
[tox]
skipsdist=True
envlist =
py{37,38}-dj{111,22,30,31,32}
[testenv]
usedevelop = True
commands =
pytest {posargs}
deps =
lxml==4.5.0
mock==3.0.5
Pillow==6.2.1
pytest
pytest-django
dj111: Django>=1.11,<2.0
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2b1,<4.0
[testenv:pep8]
description = Run PEP8 flake8 against the src/phatpages/ package directory
skipsdist = true
skip_install = true
basepython = python3.7
deps = flake8
commands = flake8 ckeditor tests
[testenv:clean]
description = Clean all build and test artifacts
skipsdist = true
skip_install = true
deps =
whitelist_externals =
find
rm
commands =
find {toxinidir} -type f -name "*.pyc" -delete
find {toxinidir} -type d -name "__pycache__" -delete
rm -rf {toxinidir}/django_ckeditor.egg-info {toxinidir}/htmlcov {toxinidir}/.coverage
rm -rf {toxinidir}/tests/db.sqlite {toxworkdir} {toxinidir}/.pytest_cache
[testenv:coverage]
description = Run test coverage and display results
basepython = python3.7
deps =
{[testenv]deps}
Django>=2.2,<3.0
coverage
pytest-cov
whitelist_externals =
echo
commands =
pytest --cov-report html --cov-report term --cov=ckeditor
echo HTML coverage report: {toxinidir}/htmlcov/index.html
[gh-actions]
python =
3.7: py37
3.8: py38