Skip to content

Commit

Permalink
Test ansible-core-2.18 too.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Dec 19, 2024
1 parent b59dedf commit c702c39
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 19 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,45 @@ jobs:
env:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
python-3-13:
needs:
- lint
runs-on: ubuntu-20.04
container:
image: python:3.13
strategy:
fail-fast: false
matrix:
config:
- image: "enterpriselinux"
tag: "latest"
- image: "debian"
tag: "latest"
- image: "debian"
tag: "bullseye"
- image: "fedora"
tag: "40"
- image: "fedora"
tag: "latest"
- image: "fedora"
tag: "rawhide"
- 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 }}
18 changes: 9 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ molecule:
matrix:
- image: "enterpriselinux"
tag: "latest"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "debian"
tag: "latest"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "debian"
tag: "bullseye"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "fedora"
tag: "40"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "fedora"
tag: "latest"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "fedora"
tag: "rawhide"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "ubuntu"
tag: "latest"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "ubuntu"
tag: "jammy"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']
- image: "ubuntu"
tag: "focal"
python: ['python:3.9', 'python:3.10']
python: ['python:3.9', 'python:3.10', 'python:3.13']

galaxy:
script:
Expand Down
17 changes: 7 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = ansible-2.{15,16,17}
envlist = ansible-2.{15,16,17,18}
skipsdist = true

[testenv]
Expand Down Expand Up @@ -37,12 +37,9 @@ deps =
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.*
[testenv:ansible-2.18]
basepython = python3.13
deps =
-rrequirements.txt
ansible-core==2.18.*
ansible-lint==24.*

0 comments on commit c702c39

Please sign in to comment.