-
Notifications
You must be signed in to change notification settings - Fork 328
49 lines (49 loc) · 1.25 KB
/
molecule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
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