Skip to content

Commit 95f4567

Browse files
authored
Adjust versions used in testing (#388)
* Remove ansible-core 2.15 from testing * Adjust versions in testing
1 parent c642603 commit 95f4567

File tree

4 files changed

+58
-15
lines changed

4 files changed

+58
-15
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,51 @@ jobs:
3232
max-parallel: 1
3333
matrix:
3434
distro: [ubuntu2204]
35-
python: ['3.10', '3.11']
36-
ansible: ['2.15', '2.16', '2.17']
35+
python: ['3.10', '3.11', '3.12']
36+
ansible: ['2.16', '2.17']
37+
scenario: [default]
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+
icinga-default-scenario-ansible-2.18:
67+
runs-on: ubuntu-latest
68+
69+
env:
70+
COLLECTION_NAMESPACE: netways
71+
COLLECTION_NAME: icinga
72+
73+
strategy:
74+
fail-fast: false
75+
max-parallel: 1
76+
matrix:
77+
distro: [ubuntu2204]
78+
python: ['3.11', '3.12', '3.13']
79+
ansible: ['2.18']
3780
scenario: [default]
3881

3982
steps:

.github/workflows/python-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
# max-parallel: 4
2424
matrix:
25-
python: ['3.11']
25+
python: ['3.11', '3.12', '3.13']
2626

2727
steps:
2828
- name: Check out code
@@ -46,8 +46,8 @@ jobs:
4646
strategy:
4747
# max-parallel: 4
4848
matrix:
49-
distro: [centos8, debian10]
50-
python: [ '3.8', '3.9', '3.10', '3.11']
49+
distro: [centos8, debian11, debian12]
50+
python: [ '3.10', '3.11', '3.12', '3.13']
5151

5252
steps:
5353
- name: Check out code
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install dependencies
6363
run: |
6464
python3 -m pip install --upgrade pip
65-
python3 -m pip install "ansible-core>=2.13.10" "requests>=1.0.0"
65+
python3 -m pip install "ansible-core>=2.16.14" "requests>=1.0.0"
6666
6767
- name: Test with unittest
6868
run: |

.github/workflows/test_icingaweb2_ini_template.yml

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

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

2626
env:
@@ -32,8 +32,8 @@ jobs:
3232
max-parallel: 1
3333
matrix:
3434
distro: [ubuntu2204]
35-
python: ['3.9','3.10','3.11']
36-
ansible: ['2.15']
35+
python: ['3.10','3.11','3.12']
36+
ansible: ['2.16']
3737
scenario: [ini-configuration-tests]
3838

3939
steps:
@@ -63,7 +63,7 @@ jobs:
6363
env:
6464
MOLECULE_DISTRO: ${{ matrix.distro }}
6565

66-
test_ini_template_2_16:
66+
test_ini_template_2_17:
6767
runs-on: ubuntu-latest
6868

6969
env:
@@ -76,7 +76,7 @@ jobs:
7676
matrix:
7777
distro: [ubuntu2204]
7878
python: ['3.10','3.11','3.12']
79-
ansible: ['2.16']
79+
ansible: ['2.17']
8080
scenario: [ini-configuration-tests]
8181

8282
steps:
@@ -106,7 +106,7 @@ jobs:
106106
env:
107107
MOLECULE_DISTRO: ${{ matrix.distro }}
108108

109-
test_ini_template_2_17:
109+
test_ini_template_2_18:
110110
runs-on: ubuntu-latest
111111

112112
env:
@@ -118,8 +118,8 @@ jobs:
118118
max-parallel: 1
119119
matrix:
120120
distro: [ubuntu2204]
121-
python: ['3.10','3.11','3.12']
122-
ansible: ['2.17']
121+
python: ['3.11','3.12','3.13']
122+
ansible: ['2.18']
123123
scenario: [ini-configuration-tests]
124124

125125
steps:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible-core>=2.15,<2.16
1+
ansible-core>=2.18,<2.19
22
molecule
33
ansible-lint
44
molecule-docker

0 commit comments

Comments
 (0)