File: tox.ini

package info (click to toggle)
python-django-constance 4.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 800 kB
  • sloc: python: 2,089; makefile: 25; javascript: 23; sh: 6
file content (45 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download
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
[tox]
isolated_build = true
envlist =
    py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations}
    py{310,311,312}-dj{50}-{unittest,pytest,checkmigrations}
    py{310,311,312,313}-dj{51}-{unittest,pytest,checkmigrations}
    py{310,311,312,313,314}-dj{52}-{unittest,pytest,checkmigrations}
    py{312,313,314}-dj{main}-{unittest,pytest,checkmigrations}
skip_missing_interpreters = True

[testenv]
deps =
    redis
    coverage
    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
    pytest: pytest
    pytest: pytest-cov
    pytest: pytest-django
usedevelop = True
ignore_outcome =
    djmain: True
commands =
    unittest: coverage run {envbindir}/django-admin test -v2
    unittest: coverage report
    unittest: coverage xml
    pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
    checkmigrations: django-admin makemigrations --check --dry-run
setenv =
    PYTHONPATH = {toxinidir}
    PYTHONDONTWRITEBYTECODE = 1
    DJANGO_SETTINGS_MODULE = tests.settings

[gh-actions]
python =
    3.8: py38
    3.9: py39
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313
    3.14: py314