-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
38 lines (34 loc) · 1001 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
[flake8]
max-line-length = 100
[tox]
skipsdist = True
envlist = {controller,ui}-{unit,lint,integration},integration
[testenv]
setenv =
controller: CHARM = controller
ui: CHARM = ui
unit: TYPE = unit
lint: TYPE = lint
integration: TYPE = integration
commands =
tox -c charms/jupyter-{env:CHARM} -e {env:TYPE}
[testenv:update-requirements]
allowlist_externals =
bash
find
pip-compile
xargs
commands =
; uses 'bash -c' because piping didn't work in regular tox commands
bash -c \'find . -type f -name "requirements*.in" | xargs --replace=\{\} pip-compile --resolver=backtracking \{\}'
deps =
pip-tools
description = Update requirements files by executing pip-compile on all requirements*.in files, including those in subdirs.
[testenv:integration]
whitelist_externals = tox
passenv =
HOME
DISPLAY
deps =
-r requirements-integration.txt
commands = pytest -vvs --tb native --show-capture=no --log-cli-level=INFO --asyncio-mode=auto {posargs} {toxinidir}/tests/