update submodule to v2.22.1 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: test ansible roles with molecule | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
deepops-role: | |
- cachefilesd | |
- facts | |
- kerberos_client | |
- lmod | |
- nis_client | |
- nfs | |
- nhc | |
- nvidia_dcgm | |
- openmpi | |
- openshift | |
- rsyslog_client | |
- rsyslog_server | |
- mofed | |
- singularity_wrapper | |
- slurm | |
- spack | |
steps: | |
- name: check out repo | |
uses: actions/checkout@v2 | |
with: | |
path: "${{ github.repository }}" | |
- name: set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install ansible==4.8.0 | |
python3 -m pip install molecule[docker] docker | |
- name: run molecule test | |
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 |