-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
76 lines (65 loc) · 1.55 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
[tox]
# RHEL -> ansible-core (RHEL)
# ref. Download -> RHEL: https://red.ht/3MkZvxx
# 9 -> 2.14.x (2.14.2-x)
#
# AAP -> ansible-core
# ref. Download -> AAP: https://red.ht/3Ok4qBG
# 2.3 -> 2.14.x (2.14.5-x)
#
# AAP Container images (EE) -> ansible-core
# ref. Certified container images -> Image Type: Automation execution environment:
# https://red.ht/3Op594E
# {minimal,supported}:latest -> 2.12.10-x (ansible-core)
# compatibility:latest -> ansible-2.9.27
#
# Ansible versions: Ansible vs. ansible-core
# https://docs.ansible.com/ansible/devel/roadmap/ansible_roadmap_index.html
# 5 -> 2.12.x
# 6 -> 2.13.x
# 7 -> 2.14.x
envlist =
py39
py310
py311
py312
lint
skipsdist = true
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311, lint
3.12: py312
[testenv]
passenv =
TERM
_GROUP_VARS_DIR
deps =
ansible
-r {toxinidir}/requirements.txt
-r {toxinidir}/tests/requirements.txt
podman: molecule-plugins[podman]
ansible-runner: -r {toxinidir}/tests/arr.requirements.txt
setenv =
TOX_ENVNAME={envname}
MOLECULE_EPHEMERAL_DIRECTORY=/tmp/{envname}
MOLECULE_NO_LOG = false
allowlist_externals =
bash
podman
docker
commands =
bash tests/run_tests.sh ok default
bash tests/run_tests.sh ng default
[testenv:lint]
commands =
bash tests/lint.sh
[testenv:podman]
commands =
bash tests/run_tests.sh ok {envname}
bash tests/run_tests.sh ng {envname}
[testenv:ansible-runner]
commands =
bash tests/run_tests_by_ansible-runner.sh ok
bash tests/run_tests_by_ansible-runner.sh ng