-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test maintained versions of ansible-core.
- Loading branch information
1 parent
c29e6e6
commit 44b7216
Showing
9 changed files
with
129 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,16 +21,17 @@ jobs: | |
uses: actions/checkout@v4 | ||
- name: ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
test: | ||
|
||
python-3-9: | ||
needs: | ||
- lint | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: python:3.9 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- image: "enterpriselinux" | ||
tag: "8" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian" | ||
|
@@ -43,8 +44,48 @@ jobs: | |
tag: "latest" | ||
- image: "fedora" | ||
tag: "rawhide" | ||
- image: "opensuse" | ||
- image: "ubuntu" | ||
tag: "latest" | ||
- image: "ubuntu" | ||
tag: "jammy" | ||
- image: "ubuntu" | ||
tag: "focal" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: molecule | ||
run: | | ||
apt-get update -qq | ||
apt-get -y -qq install yamllint docker.io | ||
pip install --no-cache-dir tox | ||
if [ -f tox.ini ] ; then tox ; fi | ||
if [ ! -f tox.ini ] ; then pip install -r requirements.yml ; pip install ansible-lint ansible-core ; molecule test ; fi | ||
env: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} | ||
python-3-10: | ||
needs: | ||
- lint | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: python:3.10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "debian" | ||
tag: "latest" | ||
- image: "debian" | ||
tag: "bullseye" | ||
- image: "fedora" | ||
tag: "39" | ||
- image: "fedora" | ||
tag: "latest" | ||
- image: "fedora" | ||
tag: "rawhide" | ||
- image: "ubuntu" | ||
tag: "latest" | ||
- image: "ubuntu" | ||
|
@@ -54,10 +95,14 @@ jobs: | |
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: "${{ github.repository }}" | ||
|
||
- name: molecule | ||
uses: robertdebock/[email protected] | ||
with: | ||
run: | | ||
apt-get update -qq | ||
apt-get -y -qq install yamllint docker.io | ||
pip install --no-cache-dir tox | ||
if [ -f tox.ini ] ; then tox ; fi | ||
if [ ! -f tox.ini ] ; then pip install -r requirements.yml ; pip install ansible-lint ansible-core ; molecule test ; fi | ||
env: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
matrix_overrides: | ||
amazonlinux: | ||
python: | ||
- python:3.9 | ||
- python:3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
ansible-compat == 4.* | ||
molecule == 6.* | ||
molecule-plugins[docker] == 23.* | ||
ansible-lint == 6.* | ||
paramiko == 3.* | ||
molecule | ||
molecule-plugins[docker] | ||
paramiko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[tox] | ||
envlist = ansible-2.{15,16,17} | ||
skipsdist = true | ||
|
||
[testenv] | ||
commands = molecule test | ||
|
||
setenv = | ||
TOX_ENVNAME={envname} | ||
PY_COLORS=1 | ||
ANSIBLE_FORCE_COLOR=1 | ||
ANSIBLE_ROLES_PATH=../ | ||
|
||
passenv = namespace, image, tag, DOCKER_HOST | ||
|
||
# Test supported releases of ansible-core. See: | ||
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix | ||
|
||
[testenv:ansible-2.15] | ||
basepython = python3.9 | ||
deps = | ||
-rrequirements.txt | ||
ansible-core==2.15.* | ||
ansible-lint==6.* | ||
|
||
[testenv:ansible-2.16] | ||
basepython = python3.10 | ||
deps = | ||
-rrequirements.txt | ||
ansible-core==2.16.* | ||
ansible-lint==24.* | ||
|
||
[testenv:ansible-2.17] | ||
basepython = python3.10 | ||
deps = | ||
-rrequirements.txt | ||
ansible-core==2.17.* | ||
ansible-lint==24.* | ||
|
||
# Future work, not releases, just prepared. See: | ||
# https://docs.ansible.com/ansible/devel//roadmap/ROADMAP_2_18.html | ||
# Note: enable python3.13 in `vars/main.yml` as well. | ||
# [testenv:ansible-2.18] | ||
# basepython = python3.13 | ||
# deps = | ||
# -rrequirements.txt | ||
# ansible-core==2.18.* | ||
# ansible-lint==24.* |