forked from SUSE/BCI-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
78 lines (70 loc) · 1.88 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
[tox]
envlist = {py36,py39,py310,py311,py312}-unit, build, all, base, fips, init, dotnet, python, ruby, node, go, openjdk, openjdk_devel, rust, php, busybox, 389ds, metadata, minimal, multistage, repository, doc, lint, get_urls, pcp, distribution, postgres, git, helm, nginx, kernel_module, mariadb, tomcat, spack, gcc
isolated_build = True
skip_missing_interpreters = True
[common]
deps =
pytest
pytest-testinfra
pytest-xdist ; python_version >= "3.6"
dataclasses ; python_version < "3.7"
pytest-rerunfailures
typing_extensions
requests
# 8.4.0 is borked: https://github.com/jd/tenacity/issues/471
tenacity != 8.4.0
git+https://github.com/dcermak/pytest_container
doc: Sphinx
[testenv]
deps =
{[common]deps}
# Require a recent version of psycopg2 to avoid poo#128900
# 2.9.6 was the most up-to-date when adding this dependency
psycopg2 >= 2.9.6
pymysql
allowlist_externals =
docker
podman
buildah
passenv =
BASEURL
BCI_DEVEL_REPO
CONTAINER_RUNTIME
HOME
OS_PRETTY_NAME
OS_VERSION
PULL_ALWAYS
TARGET
USER
XDG_CONFIG_HOME
XDG_RUNTIME_DIR
commands =
pytest -vv tests/test_{envname}.py --junitxml={toxinidir}/junit_{envname}.xml --pytest-container-log-level=debug []
[testenv:{py36,py39,py310,py311,py312}-unit]
commands =
pytest -n auto tests/test_unit.py --junitxml={toxinidir}/junit_unit.xml []
deps =
{[common]deps}
[testenv:format]
allowlist_externals = ./format.sh
deps =
ruff
commands =
./format.sh []
[testenv:venv]
passenv = *
allowlist_externals = *
commands = {posargs} []
[testenv:doc]
commands = sphinx-build -M html source build -W []
[testenv:lint]
deps =
{[testenv]deps}
pylint
ruff
commands =
pylint bci_tester/ tests/
ruff check
[testenv:get_urls]
allowlist_externals = {toxinidir}/bci_tester/data.py
commands = {toxinidir}/bci_tester/data.py