Skip to content

Commit

Permalink
build: bump CI workflow to latest and remove Rocky8
Browse files Browse the repository at this point in the history
Rocky Linnux 8 is removed from the test matrix due to the Python version
requirement of latest Ansible that is not met by an out of the box Rocky
Linux 8 installation.
  • Loading branch information
mrolli committed Oct 21, 2024
1 parent ba44e43 commit ff43364
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ on:
- main

jobs:

lint:
name: Lint
runs-on: ubuntu-latest

steps:

- name: Checkout the codebase
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"

- name: Install test dependencies.
run: pip3 install yamllint ansible-lint
Expand All @@ -37,27 +35,27 @@ jobs:
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#using-a-matrix-strategy
strategy:
matrix:
distro: [rockylinux8, rockylinux9, ubuntu2004, ubuntu2204]
distro: [rockylinux9, ubuntu2004, ubuntu2204]
scenario: [default, local, remove-alias, uninstall]
include:
- playbook: converge.yml

steps:
- name: Checkout the codebase
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"

- name: Install test dependencies.
run: pip3 install ansible molecule 'molecule-plugins[podman]' podman

- name: Run Molecule tests.
run: molecule test -s ${{ matrix.scenario }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_DISTRO: ${{ matrix.distro }}
MOLECULE_PLAYBOOK: ${{ matrix.playbook }}

0 comments on commit ff43364

Please sign in to comment.