-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
75 lines (70 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist =
test,
check-migrations,
[testenv:docs]
skipsdist = true
skip_install = true
deps =
mkdocs
mkdocs-material>=9.5.29
pymdown-extensions
commands =
mkdocs serve {posargs} -a 0.0.0.0:8083
[testenv:builddocs]
skipsdist = true
skip_install = true
deps =
mkdocs
mkdocs-material>=9.5.29
pymdown-extensions
commands =
mkdocs build {posargs}
[testenv:test]
setenv =
DJANGO_SETTINGS_MODULE = rdwatch.settings
RDWATCH_DJANGO_DEBUG = 1
DJANGO_CONFIGURATION = TestingConfiguration
RDWATCH_ACCENTURE_VERSION = 3
RDWATCH_MODEL_RUN_API_KEY = secretkey
passenv =
RDWATCH_SECRET_KEY
RDWATCH_CELERY_BROKER_URL
RDWATCH_POSTGRESQL_URI
RDWATCH_REDIS_URI
RDWATCH_ACCENTURE_VERSION
RDWATCH_DJANGO_DEBUG
RDWATCH_SMART_STAC_URL
RDWATCH_SMART_STAC_KEY
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install --with test
commands =
poetry run pytest {posargs}
[testenv:check-migrations]
setenv =
DJANGO_SETTINGS_MODULE = rdwatch.settings
RDWATCH_DJANGO_DEBUG = 1
DJANGO_CONFIGURATION = BaseConfiguration
RDWATCH_ACCENTURE_VERSION = 3
RDWATCH_MODEL_RUN_API_KEY = secretkey
passenv =
RDWATCH_SECRET_KEY
RDWATCH_CELERY_BROKER_URL
RDWATCH_POSTGRESQL_URI
RDWATCH_REDIS_URI
RDWATCH_ACCENTURE_VERSION
RDWATCH_DJANGO_DEBUG
RDWATCH_SMART_STAC_URL
RDWATCH_SMART_STAC_KEY
RDWATCH_POSTGRESQL_SCORING_URI
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run django-admin makemigrations --check --dry-run
[pytest]
DJANGO_SETTINGS_MODULE = rdwatch.settings
addopts = --strict-markers --showlocals --verbose