File: tox.ini

package info (click to toggle)
python-django-colorfield 0.11.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 364 kB
  • sloc: javascript: 2,510; python: 716; makefile: 14; sh: 2
file content (59 lines) | stat: -rw-r--r-- 1,428 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[tox]
envlist =
    py38-{dj30,dj31,dj32,dj40,dj41,dj42}-{sqlite},
    py39-{dj30,dj31,dj32,dj40,dj41,dj42}-{sqlite},
    py310-{dj32,dj40,dj41,dj42,dj50}-{sqlite},
    py311-{dj41,dj42,dj50}-{sqlite},
    py312-{dj42,dj50}-{sqlite},

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

[testenv]
passenv = CI,GITHUB_WORKFLOW

setenv =
    sqlite: DATABASE_ENGINE=sqlite

deps =
    dj30: Django == 3.0.*
    dj31: Django == 3.1.*
    dj32: Django == 3.2.*
    dj40: Django == 4.0.*
    dj41: Django == 4.1.*
    dj42: Django == 4.2.*
    dj50: Django == 5.0.*
    -r requirements.txt
    -r requirements-test.txt

commands =
    pre-commit run -a
    coverage run --append --source=colorfield runtests.py
    coverage report --show-missing --ignore-errors

[testenv:migrations]
setenv =
    DJANGO_SETTINGS_MODULE=tests.settings
    DATABASE_ENGINE=sqlite
deps =
    -r requirements.txt
commands =
    python -m django makemigrations --check

[testenv:translations]
setenv =
    DJANGO_SETTINGS_MODULE=tests.settings
    DATABASE_ENGINE=sqlite
deps =
    -r requirements.txt
allowlist_externals = git
commands =
    python -m django makemessages --ignore ".tox" --ignore "venv" --all --add-location "file" --extension "html,py"
    python -m django compilemessages --ignore ".tox" --ignore "venv"
    git diff colorfield/locale/
    git diff-index --quiet HEAD colorfield/locale/