-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
36 lines (34 loc) · 1.07 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
[tox]
isolated_build = true
envlist =
py{38,39,310}-django32-djangocms{39,310}-{basic,filer,anylink}
py{38,39,310}-django{32,41}-djangocms311-{basic,filer}
py{38,39,310}-django32-djangocms311-all
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[testenv]
setenv = PYTHONPATH={toxinidir}
deps =
django32: Django>=3.2,<3.3
django41: Django>=4.1,<4.2
djangocms39: django-cms>=3.10,<3.11
djangocms310: django-cms>=3.10,<3.11
djangocms311: django-cms>=3.11,<3.12
filer: django-filer>=2.0,<3.0
anylink: django-anylink>=2.0,<3.0
all: django-anylink>=2.0,<3.0
all: django-filer>=2.0,<3.0
allowlist_externals =
poetry
sh
skip_install = true
commands =
poetry export --with dev --without-hashes -o {toxworkdir}/reqs.txt
sh -c 'grep -v "^[dD]jango==" {toxworkdir}/reqs.txt | grep -v "^django-cms==" | grep -v "^django-filer==" | grep -v "^django-anylink==" | python -m pip install --no-deps -r /dev/stdin'
basic: pytest --ignore=tests/anylink --ignore=tests/filer
filer: pytest --ignore=tests/anylink
anylink: pytest --ignore=tests/filer
all: pytest --isort --flake8 --black --cov