forked from escaped/django-inline-actions
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
39 lines (37 loc) · 1.05 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
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[tox]
skipsdist = True
isolated_build = True
envlist =
py38-{3.0,3.1,3.2,4.0,4.1}
py39-{3.0,3.1,3.2,4.0,4.1}
py310-{3.0,3.1,3.2,4.0,4.1}
py311-{3.0,3.1,3.2,4.0,4.1}
[testenv]
skip_install = True
whitelist_externals =
bash
env
grep
deps =
poetry
3.0: Django>=3.0,<3.1
3.1: Django>=3.1,<3.2
3.2: Django>=3.2,<3.3
4.0: Django>=4.0,<4.1
4.1: Django>=4.1,<4.2
commands =
# Poetry install automatically install the specific versions from the `poetry.lock`
# file regardless whether a different version is already present or not.
# Since we want to test specific versions of Django, which is installed by tox,
# we need to manually install all other dependencies.
# see here for more information: https://github.com/python-poetry/poetry/issues/1745
bash -c 'poetry export --dev --without-hashes -f requirements.txt | grep -v "^[dD]jango==" > .requirements.txt'
poetry run pip install --no-deps -r .requirements.txt
poetry run pytest --cov-append
coverage report