-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
100 lines (66 loc) · 1.8 KB
/
Copy pathtox.ini
File metadata and controls
100 lines (66 loc) · 1.8 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[tox]
envlist = py37, lint, docs
skipsdist = true
[gh-actions]
python =
3.7: py37, lint, docs
[default]
basepython = python3.7
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
setenv =
PYTHONPATH = {toxinidir}
[testenv]
description = run tests
deps =
{[default]deps}
setenv =
{[default]setenv}
passenv = *
;commands =
; docker run -d -p {env:REG_PORT}:{env:REG_PORT} --restart=always --name {env:REG_NAME} registry:2
; docker pull {env:DOCKER_REPOSITORY}/mlbench_worker:{env:DOCKER_IMAGE_TAG}
; docker tag {env:DOCKER_REPOSITORY}/mlbench_worker:{env:DOCKER_IMAGE_TAG} localhost:5000/mlbench_worker:{env:DOCKER_IMAGE_TAG}
; docker push localhost:5000/mlbench_worker:{env:DOCKER_IMAGE_TAG}
; docker ps -a
; env DOCKER_REPOSITORY="localhost:5000" python src/manage.py test -v 2
commands =
python src/manage.py test -v 2
[testenv:lint]
description = run Black and Isort (linter)
basepython = {[default]basepython}
skip_install = True
deps =
black==20.8b1
isort==5.5.3
setenv =
BLACK_LINT_ARGS=--check
commands =
black {env:BLACK_LINT_ARGS:} src/
isort --check-only src/
[testenv:docs]
description = Test docs
basepython = {[default]basepython}
skip_install = True
deps =
-r{toxinidir}/docs/requirements.txt
commands =
make docs
[testenv:integration]
description = run integration tests
basepython = {[default]basepython}
deps =
{[default]deps}
setenv =
{[default]setenv}
passenv = *
commands =
docker run -d -p {env:REG_PORT}:{env:REG_PORT} --restart=always --name {env:REG_NAME} registry:2
bash {toxinidir}/integration_tests/run_integration.sh
[isort]
; black's default line length
line_length = 88
multi_line_output = 3
include_trailing_comma = True
skip=src/django-rq-scheduler, src/api/migrations/