Skip to content

Commit

Permalink
feat(ci): add ansible 7, 8 to test matrix (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasPammer authored Sep 25, 2023
1 parent 5b88c5b commit dfa90c2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
5 changes: 4 additions & 1 deletion {{ cookiecutter.project_slug }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ name: CI (Lint + Molecule)
type: choice
default: "ansible-6"
options:
- ansible-4,ansible-5,ansible-6,ansible-7,ansible-8
- ansible-4,ansible-5,ansible-6
- ansible-4,ansible-5
- ansible-7,ansible-8
- ansible-4
- ansible-5
- ansible-6
- ansible-7
- ansible-8
pull_request:
branches-ignore:
- renovate/**
Expand Down
2 changes: 2 additions & 0 deletions {{ cookiecutter.project_slug }}/README.orig.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ As of writing this is:
* 2.11 (Ansible 4)
* 2.12 (Ansible 5)
* 2.13 (Ansible 6)
* 2.14 (Ansible 7)
* 2.15 (Ansible 8)


[[development]]
Expand Down
18 changes: 11 additions & 7 deletions {{ cookiecutter.project_slug }}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@ extend-ignore = E203
### Ansible Testing through Molecule ###
[tox]
minversion = 4.1.2
envlist = pre-commit,py{3}-ansible-{4,5,6}
envlist = pre-commit,py{3}-ansible-{4,5,6,7,8}

skipsdist = true

[testenv]
passenv = *
parallel_show_output = True
deps =
ansible-4: ansible == 4.* # core 2.11 + https://github.com/ansible-community/ansible-build-data/blob/main/4/ansible-4.build
ansible-5: ansible == 5.* # core 2.12 + https://github.com/ansible-community/ansible-build-data/blob/main/5/ansible-5.build
ansible-6: ansible == 6.* # core 2.13 + https://github.com/ansible-community/ansible-build-data/blob/main/6/ansible-6.build
# For information on what included in the the "ansible" package,
# see https://github.com/ansible-community/ansible-build-data/blob/main/ (e.g. `/5/ansible-5.build`).
ansible-4: ansible == 4.* # core 2.11
ansible-5: ansible == 5.* # core 2.12
ansible-6: ansible == 6.* # core 2.13
ansible-7: ansible == 7.* # core 2.14
ansible-8: ansible == 8.* # core 2.15
ansible-4: molecule == 4.*
ansible-{5,6}: molecule == 5.* # molecule v5.0.0 requires ansible-core>=2.12
ansible-!4: molecule >= 5 # molecule v5.0.0 requires ansible-core>=2.12
ansible-4: molecule-plugins[docker] == 22.*
ansible-{5,6}: molecule-plugins[docker] == 23.* # molecule-plugins v23.4.0 requires ansible-core>=2.12
ansible-!4: molecule-plugins[docker] >= 23 # molecule-plugins v23.4.0 requires ansible-core>=2.12
paramiko == 3.*
ansible-4: ansible-lint == 5.*
ansible-{5,6}: ansible-lint == 6.* # ansible-lint 6 made ansible 2.12+ a direct dependency
ansible-!4: ansible-lint >= 6 # ansible-lint 6 made ansible 2.12+ a direct dependency
commands =
ansible --version
molecule destroy
Expand Down

0 comments on commit dfa90c2

Please sign in to comment.