-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
66 lines (49 loc) · 868 Bytes
/
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
[tox]
envlist = py39, py310, py311, front, lint
skipsdist = True
isolated_build = True
[testenv]
skip_install = True
whitelist_externals =
install
yarn
env
poetry
passenv =
SQLALCHEMY_DATABASE_URI
TRAVIS
CI
LC_ALL
DISPLAY
commands_pre =
# Install deps
pip install -U pip setuptools wheel
pip freeze
poetry install
# pip check
env
commands =
# ensure instance dir exists
#/bin/mkdir -p -v {toxinidir}/instance
install -d instance/data/files
# run tests
pytest -v
[testenv:front]
commands_pre =
yarn --cwd front
commands =
yarn --cwd front run test:unit
[testenv:lint]
commands =
# Install front-end deps
yarn --cwd front
# run linters
flake8 src/labster
isort -c src/labster
# mypy labster
[testenv:e2e]
commands =
# Install front-end deps
yarn --cwd front
# Run e2e tests
flask test e2e