forked from kpfleming/ansible-powerdns-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
85 lines (77 loc) · 1.84 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
79
80
81
82
83
84
85
[tox]
envlist=lint
skipsdist=True
[ansible-base]
deps=
bravado
ansible
swagger-spec-validator==2.6.0
jsonschema<4
commands=
python -VV
ansible-playbook -i localhost, workflow-support/test-tsigkey.yml
ansible-playbook -i localhost, workflow-support/test-zone.yml
[galaxy-base]
deps=
ansible
setenv=
ANSIBLE_COLLECTIONS_PATH={envtmpdir}/collections
commands=
ansible-playbook -i localhost, workflow-support/make-galaxy-yml.yml
ansible-galaxy collection install -p {env:ANSIBLE_COLLECTIONS_PATH} src
[lint-base]
deps=
black>=23
ruff>=0.0.237
ansible-lint
[testenv:lint-action]
ignore_errors=true
allowlist_externals=bash
deps=
{[galaxy-base]deps}
{[lint-base]deps}
setenv=
{[galaxy-base]setenv}
commands=
{[galaxy-base]commands}
black --check --diff --preview src
ruff check --format=github src
bash -c 'shellcheck workflow-support/*.sh'
bash -c 'ansible-lint --profile production -v'
[testenv:lint]
allowlist_externals=bash
deps=
{[galaxy-base]deps}
{[lint-base]deps}
setenv=
{[galaxy-base]setenv}
commands=
{[galaxy-base]commands}
black --preview src
ruff check --fix src
bash -c 'shellcheck workflow-support/*.sh'
bash -c 'ansible-lint --write all --profile production -v'
[testenv:py{38,39,310,311}-ci-action]
passenv=pdns_version
deps=
{[galaxy-base]deps}
{[ansible-base]deps}
setenv=
{[galaxy-base]setenv}
commands=
{[galaxy-base]commands}
{[ansible-base]commands}
[testenv:build]
deps=
{[galaxy-base]deps}
setenv=
TAG=local
commands=
ansible-playbook -i localhost, workflow-support/build.yml
[testenv:publish-action]
passenv=ANSIBLE_GALAXY_TOKEN,TAG
deps=
{[galaxy-base]deps}
commands=
ansible-playbook -i localhost, workflow-support/build.yml
ansible-playbook -i localhost, workflow-support/publish.yml