-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
64 lines (58 loc) · 1.98 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
62
63
64
# geckodriver howto
# https://askubuntu.com/questions/851401/where-to-find-geckodriver-needed-by-selenium-python-package/863211
# first: check latest version here: https://github.com/mozilla/geckodriver/releases
# wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
# tar -xvzf geckodriver-v0.11.1-linux64.tar.gz
# rm geckodriver-v0.11.1-linux64.tar.gz
# chmod +x geckodriver
# cp geckodriver /usr/local/bin/
[tox]
envlist = py{38,39,310,311}-django{32}-cms{38}, py{38,39,310,311,312}-django{42}-cms{311}, py12-django42-cms311-lint, py39-django32-cms38-coverage
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv:py311-django42-cms311-lint]
deps = pre-commit
commands = pre-commit run --all-files
[testenv:py39-django32-cms38-coverage]
allowlist_externals = echo
commands =
# https://github.com/nedbat/coveragepy/issues/1272
pip install coverage<6
coverage erase
coverage run ./manage.py test
coverage report --include='djangocms_baseplugins*' --omit='*/tests/*' --omit='*/migrations/*'
coverage html --include='djangocms_baseplugins*' --omit='*/tests/*' --omit='*/migrations/*'
echo "open_command htmlcov/index.html"
[testenv]
commands = python manage.py test
setenv =
DJANGO_SETTINGS_MODULE=test_app.settings
PYTHONPATH={toxinidir}
deps =
django22: Django>=2.2,<2.3
django32: Django>=3.2,<3.3
django42: Django>=4.2,<4.3
django-modeltranslation<0.18
# django-cms==3.8
cms38: django-cms>=3.8,<3.9
cms311: django-cms>=3.11,<3.12
django-admin-sort
; django-polymorphic==2.1.2
django-polymorphic
django-ckeditor==6.0.0
django-mailprotector
# form_designer<0.21
form_designer
django-formtools
django-textblocks
django-admin-ordering
requests
django-filer-addons @ git+https://github.com/benzkji/django-filer-addons.git@master
# as long as we support django 1.11!
django-filer<3
# end specials!