-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
51 lines (46 loc) · 1.2 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
49
50
51
[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} --ds django_nats_nkeys.tests.apps.settings.tox {posargs}
setenv =
DATABASE_URL = "postgres://debug:debug@postgres:5432/django"
DJANGO_SETTINGS_MODULE = "django_nats_nkeys.tests.apps.settings.tox"
POSTGRES_HOST = postgres
POSTGRES_PORT = 5432
POSTGRES_DB = django
POSTGRES_USER = debug
POSTGRES_PASSWORD = debug
NSC_STORE = {tox_root}/.nats/stores
NSC_HOME = {tox_root}/.nats/config
NKEYS_PATH = {tox_root}/.nats/keys
[testenv:coverage]
description = coverage report
commands = pytest --cov=django_nats_nkeys --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_nats_nkeys}
[gh-actions]
python =
3.9: py39
3.10: py310, lint, type, coverage
3.11: py311