Skip to content

Fix molecule CI and make linting pass on a current toolchain #60

Fix molecule CI and make linting pass on a current toolchain

Fix molecule CI and make linting pass on a current toolchain #60

Workflow file for this run

---
name: Molecule Test
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: set up python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
cache: pip
- name: install toolchain
run: pip install -r requirements.txt
- name: yamllint
run: yamllint .
- name: ansible-lint
run: ansible-lint
test:
needs:
- lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: set up python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
cache: pip
- name: install toolchain
run: pip install -r requirements.txt
- name: install collections
run: ansible-galaxy collection install -r molecule/default/collections.yml
- name: molecule test
run: molecule test
env:
ANSIBLE_FORCE_COLOR: "1"
PY_COLORS: "1"