-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (52 loc) · 1.15 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
[tox]
envlist = py310, py311, coveralls
ignore_basepython_conflict = true
minversion = 3.10
skip_missing_interpreters = true
skipsdist = true
[flake8]
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv
max_line_length = 79
max_complexity = 7
[gh-actions]
python =
3.10: py310
3.11: py311, coveralls
[testenv]
basepython = python3
passenv =
DJANGO_ADMIN_URL
DJANGO_ALLOWED_HOSTS
DJANGO_DEBUG
DJANGO_SECRET_KEY
DJANGO_SETTINGS_MODULE
GOOGLE_ANALYTICS_ID
GOOGLE_APPLICATION_CREDENTIALS
GOOGLE_CLOUD_PROJECT
POSTGRES_DB
POSTGRES_HOST
POSTGRES_PASSWORD
POSTGRES_PORT
POSTGRES_USER
TEST_POSTGRES_DB
TEST_POSTGRES_HOST
TEST_POSTGRES_PASSWORD
TEST_POSTGRES_PORT
TEST_POSTGRES_USER
SENTRY_DSN
deps =
-r{toxinidir}{/}requirements{/}test.txt
commands =
python manage.py collectstatic --no-input
flake8 apps/
coverage erase
pytest .
coverage html
coverage report
;This is only configured to be run on GITHUB only. It will fail if ran locally.
[testenv:coveralls]
commands =
coveralls --service=github
depends = py311
passenv =
GITHUB_*