Skip to content

remove Debian10 and Rocky9 cause of python <2.8 #56

remove Debian10 and Rocky9 cause of python <2.8

remove Debian10 and Rocky9 cause of python <2.8 #56

Workflow file for this run

name: "ansible-telegraf"
on:
push:
paths:
- 'defaults/**'
- 'files/**'
- 'handlers/**'
- 'meta/**'
- 'molecule/**'
- 'tasks/**'
- 'templates/**'
- '.github/workflows/telegraf.yml'
pull_request:
paths:
- 'defaults/**'
- 'files/**'
- 'handlers/**'
- 'meta/**'
- 'molecule/**'
- 'tasks/**'
- 'templates/**'
- '.github/workflows/telegraf.yml'
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
molecule_distro:
# - container: rocky8
# image: geerlingguy/docker-rockylinux8-ansible
# - container: rocky9
# image: geerlingguy/docker-rockylinux9-ansible
- container: ubuntu2204
image: geerlingguy/docker-ubuntu2204-ansible:latest
- container: ubuntu2004
image: geerlingguy/docker-ubuntu2004-ansible:latest
# - container: ubuntu1804
# image: geerlingguy/docker-ubuntu1804-ansible:latest
# - container: debian10
# image: geerlingguy/docker-debian10-ansible:latest
- container: debian11
image: geerlingguy/docker-debian11-ansible:latest
- container: debian12
image: geerlingguy/docker-debian12-ansible:latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11.13
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker pytest testinfra
- name: Run role tests on empty systems in check-mode
env:
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
run: molecule test -s empty-checkmode
# - name: Run role tests # broken
# env:
# MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
# MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
# MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
# MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
# run: molecule test