Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 40c23e3

Browse files
committedJul 31, 2024·
split up ini_template tests for each version.
Cleanup old versions
1 parent a1ef79b commit 40c23e3

File tree

5 files changed

+94
-13
lines changed

5 files changed

+94
-13
lines changed
 

‎.github/workflows/test_icingaweb2_ini_template.yml

Lines changed: 89 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
- '!doc/**'
2121

2222
jobs:
23-
test_ini_template:
23+
test_ini_template_2_15:
2424
runs-on: ubuntu-latest
2525

2626
env:
@@ -32,8 +32,94 @@ jobs:
3232
max-parallel: 1
3333
matrix:
3434
distro: [ubuntu2204]
35-
python: ['3.9', '3.10']
36-
ansible: ['2.13.10', '2.14.7', '2.16.4']
35+
python: ['3.9','3.10','3.11']
36+
ansible: ['2.15']
37+
scenario: [ini-configuration-tests]
38+
39+
steps:
40+
- name: Check out code
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python
44+
uses: actions/setup-python@v5
45+
with:
46+
python-version: ${{ matrix.python }}
47+
48+
- name: Install dependencies ansible
49+
run: |
50+
python3 -m pip install --upgrade pip
51+
python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt
52+
53+
- name: Install collection
54+
run: |
55+
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE
56+
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
57+
58+
- name: Test with molecule
59+
run: |
60+
ansible --version
61+
molecule --version
62+
molecule test -s ${{ matrix.scenario }}
63+
env:
64+
MOLECULE_DISTRO: ${{ matrix.distro }}
65+
66+
test_ini_template_2_16:
67+
runs-on: ubuntu-latest
68+
69+
env:
70+
COLLECTION_NAMESPACE: icinga
71+
COLLECTION_NAME: icinga
72+
73+
strategy:
74+
fail-fast: false
75+
max-parallel: 1
76+
matrix:
77+
distro: [ubuntu2204]
78+
python: ['3.10','3.11','3.12']
79+
ansible: ['2.16']
80+
scenario: [ini-configuration-tests]
81+
82+
steps:
83+
- name: Check out code
84+
uses: actions/checkout@v4
85+
86+
- name: Set up Python
87+
uses: actions/setup-python@v5
88+
with:
89+
python-version: ${{ matrix.python }}
90+
91+
- name: Install dependencies ansible
92+
run: |
93+
python3 -m pip install --upgrade pip
94+
python3 -m pip install -r requirements-test-${{ matrix.ansible }}.txt
95+
96+
- name: Install collection
97+
run: |
98+
mkdir -p ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE
99+
cp -a ../ansible-collection-$COLLECTION_NAME ~/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME
100+
101+
- name: Test with molecule
102+
run: |
103+
ansible --version
104+
molecule --version
105+
molecule test -s ${{ matrix.scenario }}
106+
env:
107+
MOLECULE_DISTRO: ${{ matrix.distro }}
108+
109+
test_ini_template_2_17:
110+
runs-on: ubuntu-latest
111+
112+
env:
113+
COLLECTION_NAMESPACE: icinga
114+
COLLECTION_NAME: icinga
115+
116+
strategy:
117+
fail-fast: false
118+
max-parallel: 1
119+
matrix:
120+
distro: [ubuntu2204]
121+
python: ['3.10','3.11','3.12']
122+
ansible: ['2.17']
37123
scenario: [ini-configuration-tests]
38124

39125
steps:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ansible-core==2.13.10
2-
ansible-lint
1+
ansible-core>=2.15,<2.16
32
molecule
3+
ansible-lint
44
molecule-docker
55
pytest-testinfra

‎requirements-test-2.16.4.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎requirements-test-2.14.7.txt renamed to ‎requirements-test-2.16.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible-core==2.14.7
1+
ansible-core>=2.16,<2.17
22
ansible-lint
33
molecule
44
molecule-docker
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ansible-core==2.16.2
2-
ansible-lint
1+
ansible-core>=2.17,<2.18
32
molecule
3+
ansible-lint
44
molecule-docker
55
pytest-testinfra

0 commit comments

Comments
 (0)
Please sign in to comment.