mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 14:10:28 +00:00
Properly add Django 5.2 and tweak coverage collection (#148)
This commit is contained in:
parent
873c90b777
commit
7f1c6701c1
1 changed files with 12 additions and 6 deletions
18
tox.ini
18
tox.ini
|
|
@ -6,6 +6,7 @@ envlist =
|
|||
py3{10,11,12}-dj{50}
|
||||
py3{10,11,12,13}-dj{51,52}
|
||||
py3{12,13}-dj{main}
|
||||
coverage
|
||||
|
||||
[gh-actions]
|
||||
python =
|
||||
|
|
@ -31,17 +32,22 @@ setenv =
|
|||
DJANGO_SETTINGS_MODULE = dbtemplates.test_settings
|
||||
deps =
|
||||
-r requirements/tests.txt
|
||||
dj42: Django<4.3
|
||||
dj50: Django<5.1
|
||||
dj51: Django<5.2
|
||||
# TODO change this afte Django 5.2 is out
|
||||
dj52: Django==5.2a1
|
||||
dj42: Django>=4.2,<4.3
|
||||
dj50: Django>=5.0,<5.1
|
||||
dj51: Django>=5.1,<5.2
|
||||
dj52: Django>=5.2,<5.3
|
||||
djmain: https://github.com/django/django/archive/main.tar.gz#egg=django
|
||||
|
||||
commands =
|
||||
python --version
|
||||
python -c "import django ; print(django.VERSION)"
|
||||
coverage run {envbindir}/django-admin test -v2 {posargs:dbtemplates}
|
||||
coverage run --branch --parallel-mode {envbindir}/django-admin test -v2 {posargs:dbtemplates}
|
||||
|
||||
[testenv:coverage]
|
||||
basepython = python3.10
|
||||
deps = coverage
|
||||
commands =
|
||||
coverage combine
|
||||
coverage report
|
||||
coverage xml
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue