Skip to content

Merge pull request #1371 from NVIDIA/dholt/retire-singularity-wrapper #604

Merge pull request #1371 from NVIDIA/dholt/retire-singularity-wrapper

Merge pull request #1371 from NVIDIA/dholt/retire-singularity-wrapper #604

Workflow file for this run

---
name: test ansible roles with molecule
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
deepops-role:
- cachefilesd
- facts
- kerberos_client
- lmod
- nfs
- nhc
- nvidia_dcgm
- openmpi
- openshift
- mofed
- spack
# Excluded from Docker CI (require systemd services that can't
# run in containers): nis_client, rsyslog_client, rsyslog_server,
# slurm. Tested end-to-end on real MAAS VMs instead.
# Also excluded: singularity_wrapper (broken upstream Galaxy dep)
steps:
- name: check out repo
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
- name: set up python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install ansible==10.7.0 passlib
python3 -m pip install molecule molecule-plugins[docker] docker
- name: run molecule test
env:
ANSIBLE_ROLES_PATH: "${{ github.workspace }}/${{ github.repository }}/roles/galaxy:${{ github.workspace }}/${{ github.repository }}/roles"
run: |
cd "${{ github.repository }}/roles"
ansible-galaxy role install --force -r ./requirements.yml
ansible-galaxy collection install --force -r ./requirements.yml
cd "${{ matrix.deepops-role }}"
molecule test