forked from caikit/caikit-tgis-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (43 loc) · 1.18 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
[tox]
envlist =
3.{11,10,9,8}
[testenv]
description = run tests with pytest with coverage
deps =
pytest>=6.2.5,<7.0
pytest-cov>=2.10.1,<3.0
pytest-html>=3.1.1,<4.0
tls_test_tools>=0.1.1
grpcio-tools>=1.35.0,<2.0
wheel>=0.38.4
Flask>=2.2.3,<3
passenv =
LOG_LEVEL
LOG_FILTERS
LOG_FORMATTER
LOG_THREAD_ID
LOG_CHANNEL_WIDTH
commands = pytest --cov=caikit_tgis_backend --cov-report=term --cov-report=html {posargs:tests}
; Unclear: We probably want to test wheel packaging
; But! tox will fail when this is set and _any_ interpreter is missing
; Without this, sdist packaging is tested so that's a start.
package=wheel
[testenv:fmt]
description = format with pre-commit
deps = pre-commit>=3.0.4,<4.0
commands = ./scripts/fmt.sh
allowlist_externals = ./scripts/fmt.sh
skip_install = True # Skip package install since fmt doesn't need to execute code, for ⚡⚡⚡
[testenv:lint]
description = lint with pylint
deps = pylint>=2.16.2,<3.0
commands = pylint caikit_tgis_backend
[testenv:publish]
description = publish wheel to pypi
deps = flit==3.8
passenv =
FLIT_PASSWORD
setenv =
FLIT_USERNAME = __token__
commands = flit publish
skip_install = True