-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (43 loc) · 1.02 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
40
41
42
43
44
45
46
47
48
[tox]
env_list =
py{39,310,311}-django{41,40,32}, lint, type, coverage
minversion = 4.4.8
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
deps =
-rdev-requirements.txt
django41: Django>=4.1,<4.2
django40: Django>=4.0,<4.1
django32: Django<4,>3.2
commands =
pytest {tty:--color=yes} {posargs}
setenv =
DATABASE_URL = "postgres://debug:debug@postgres:5432/django"
DJANGO_SETTINGS_MODULE = "django_ghost.tests.apps.settings.tox"
POSTGRES_HOST = postgres
POSTGRES_PORT = 5432
POSTGRES_DB = django
POSTGRES_USER = debug
POSTGRES_PASSWORD = debug
[testenv:coverage]
description = coverage report
commands = py.test --cov=django_ghost --cov-report xml
[testenv:lint]
description = run linters
skip_install = true
deps =
black
commands = black {posargs:.}
[testenv:type]
description = run type checks
deps =
mypy
commands =
mypy {posargs:-m django_ghost}
[gh-actions]
python =
3.9: py39
3.10: py310, lint, type, coverage
3.11: py311