-
Notifications
You must be signed in to change notification settings - Fork 128
/
tox.ini
98 lines (92 loc) · 2.59 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[tox]
skipsdist = True
minversion = 3.8.0
envlist =
py{38,39,310,311,312}
flake8,
ruff,
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-workflow/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-workflow/
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:ruff]
basepython = python3
usedevelop = False
deps = ruff==0.2.2
commands =
ruff format
[testenv:examples]
passenv = HOME
basepython = python3
changedir = ./examples/
deps =
mechanical-markdown
commands =
./validate.sh crypto
./validate.sh metadata
./validate.sh error_handling
./validate.sh pubsub-simple
./validate.sh pubsub-streaming
./validate.sh pubsub-streaming-async
./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 demo_workflow
./validate.sh workflow
./validate.sh ../
commands_pre =
pip3 install -e {toxinidir}/
pip3 install -e {toxinidir}/ext/dapr-ext-workflow/
pip3 install -e {toxinidir}/ext/dapr-ext-grpc/
pip3 install -e {toxinidir}/ext/dapr-ext-fastapi/
allowlist_externals=*
[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-workflow/
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