forked from dapr/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
79 lines (74 loc) · 2.04 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
76
77
78
79
[tox]
skipsdist = True
minversion = 3.8.0
envlist =
py{37,38,39}
flake8,
mypy,
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
deps = -rdev-requirements.txt
commands =
coverage run -m unittest discover -v ./tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-grpc/tests
coverage run -a -m unittest discover -v ./ext/dapr-ext-fastapi/tests
coverage run -a -m unittest discover -v ./ext/flask_dapr/tests
coverage xml
commands_pre =
pip3 install -e {toxinidir}/
pip3 install -e {toxinidir}/ext/dapr-ext-grpc/
pip3 install -e {toxinidir}/ext/dapr-ext-fastapi/
pip3 install -e {toxinidir}/ext/flask_dapr/
[testenv:flake8]
basepython = python3
usedevelop = False
deps = flake8
commands =
flake8 .
[testenv:examples]
setenv =
HOME={homedir}
basepython = python3
changedir = ./examples/
deps = mechanical-markdown
commands =
./validate.sh metadata
./validate.sh pubsub-simple
./validate.sh state_store
./validate.sh state_store_query
./validate.sh secret_store
./validate.sh invoke-simple
./validate.sh invoke-custom-data
./validate.sh demo_actor
./validate.sh invoke-binding
./validate.sh grpc_proxying
./validate.sh w3c-tracing
./validate.sh distributed_lock
./validate.sh configuration
./validate.sh ../
commands_pre =
pip3 install -e {toxinidir}/
pip3 install -e {toxinidir}/ext/dapr-ext-grpc/
pip3 install -e {toxinidir}/ext/dapr-ext-fastapi/
[testenv:type]
basepython = python3
usedevelop = False
deps = -rdev-requirements.txt
commands =
mypy --config-file mypy.ini
commands_pre =
pip3 install -e {toxinidir}/
pip3 install -e {toxinidir}/ext/dapr-ext-grpc/
pip3 install -e {toxinidir}/ext/dapr-ext-fastapi/
[testenv:doc]
basepython = python3
usedevelop = False
whitelist_externals = make
deps = sphinx
commands =
sphinx-apidoc -E -o docs/actor dapr/actor
sphinx-apidoc -E -o docs/clients dapr/clients
sphinx-apidoc -E -o docs/proto dapr/proto
sphinx-apidoc -E -o docs/serializers dapr/serializers
make html -C docs