Skip to content

Fix molecule workflow and add assertions #28

Fix molecule workflow and add assertions

Fix molecule workflow and add assertions #28

Workflow file for this run

---
name: Run ansible-test
on:
pull_request:
push:
branches:
- main
jobs:
ansible_test:
name: ansible-test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.9
- stable-2.17
python:
- 3.8
- 3.9
- 3.11
- 3.12
exclude:
- python: 3.9
- ansible: stable-2.9
- python: 3.11
- ansible: stable-2.9
- python: 3.12
- ansible: stable-2.9
steps:
- uses: actions/checkout@v4
- run: rm -rf docker && ls -l # prevent dockerfiles from being linted
- name: Perform sanity testing with ansible-test
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: '${{ matrix.ansible }}'
testing-type: sanity
target-python-version: '${{ matrix.python }}'