Skip to content

CI

CI #87

Workflow file for this run

---
name: CI
"on":
pull_request:
push:
branches:
- main
tags:
- "v*"
schedule:
- cron: 57 7 * * 2 # Run weekly
defaults:
run:
working-directory: ngine_io.ssh_config
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v6
with:
path: ngine_io.ssh_config
- name: Set up Python 3.
uses: actions/setup-python@v6
with:
python-version: '3.13' # Can't go to 3.14+ until Ansible 13.x
- name: Install test dependencies.
run: pip3 install ansible-core ansible-lint
- name: Lint code.
run: |
ansible-lint .
molecule:
name: Molecule
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- distro: debian13
playbook: converge.yml
- distro: rockylinux10
playbook: converge.yml
- distro: ubuntu2404
playbook: converge.yml
steps:
- name: Check out the codebase.
uses: actions/checkout@v6
with:
path: ngine_io.ssh_config
- name: Set up Python 3.
uses: actions/setup-python@v6
with:
python-version: '3.13' # Can't go to 3.14+ until Ansible 13.x
- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker
- name: Run Molecule tests.
run: molecule test
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
MOLECULE_DISTRO: ${{ matrix.distro }}
MOLECULE_PLAYBOOK: ${{ matrix.playbook }}