forked from Opus10/django-pgconnection
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (31 loc) · 815 Bytes
/
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
[tox]
isolated_build = true
envlist = clean,py37-django22,py37-django32,{38,39,310}-django{22,32,40},report
[testenv]
deps =
django22: Django>=2.2,<2.3
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
whitelist_externals =
poetry
bash
grep
pip
pytest
passenv = DATABASE_URL
skip_install = true
commands =
bash -c 'poetry export --dev --without-hashes -f requirements.txt | grep -v "^[dD]jango==" | pip install --no-deps -r /dev/stdin'
pip install . --no-deps
pytest --cov --cov-fail-under=0 --cov-append --cov-config pyproject.toml pgconnection/
[testenv:report]
whitelist_externals =
coverage
skip_install = true
commands =
coverage report --fail-under 100
[testenv:clean]
whitelist_externals =
coverage
skip_install = true
commands = coverage erase