forked from alpha-unito/streamflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (41 loc) · 976 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
[tox]
envlist =
bandit
lint
py3.{8,9,10,11,12}-unit
skip_missing_interpreters = True
[pytest]
asyncio_mode = auto
testpaths = tests
[testenv]
allowlist_externals = make
commands_pre =
py3.{8,9,10,11,12}-unit: python -m pip install -U pip setuptools wheel
commands =
py3.{8,9,10,11,12}-unit: make coverage-report coverage.xml PYTEST_EXTRA={posargs}
deps =
py3.{8,9,10,11,12}-unit: -rrequirements.txt
py3.{8,9,10,11,12}-unit: -rtest-requirements.txt
description =
py3.{8,9,10,11,12}-unit: Run the unit tests
passenv =
CI
GITHUB_*
setenv =
py3.{8,9,10,11,12}-unit: LC_ALL = C.UTF-8
[testenv:bandit]
commands = bandit -r streamflow
deps =
-rrequirements.txt
-rbandit-requirements.txt
description = Search for common security issues
passenv =
CI
GITHUB_*
[testenv:lint]
allowlist_externals = make
commands = make flake8 format-check codespell-check pyupgrade
deps =
-rrequirements.txt
-rlint-requirements.txt
description = Lint the Python code