-
Notifications
You must be signed in to change notification settings - Fork 68
72 lines (70 loc) · 1.79 KB
/
molecule.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Run Molecule tests
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- '.github/**'
- 'roles/**'
- 'plugins/**'
- 'molecule-requirements.txt'
- 'requirements.yml'
workflow_dispatch:
jobs:
run_molecule:
strategy:
fail-fast: true
matrix:
tested_role:
- edpm_ceph_client_files
- edpm_ceph_hci_pre
- edpm_container_manage
- edpm_container_rm
- edpm_container_standalone
- edpm_ddp_package
- edpm_derive_pci_device_spec
- edpm_download_cache
- edpm_growvols
- edpm_logrotate_crond
- edpm_multipathd
- edpm_network_config
- edpm_neutron_dhcp
- edpm_neutron_metadata
- edpm_neutron_ovn
- edpm_neutron_sriov
- edpm_nftables
- edpm_nodes_validation
- edpm_ovn
- edpm_reboot
- edpm_sshd
- edpm_ssh_known_hosts
- edpm_timezone
- edpm_telemetry
- edpm_telemetry_logging
- edpm_users
- env_data
- edpm_pre_adoption_validation
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install ansible
run: pip install ansible
- name: Install collections
run: ansible-galaxy collection install --force -r requirements.yml
- name: Install molecule deps
run: pip install -r molecule-requirements.txt
- name: Run molecule test
run: |
cd $GITHUB_WORKSPACE/roles/${{ matrix.tested_role }}
molecule test --all
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
ANSIBLE_VERBOSITY: 4
ANSIBLE_CALLBACKS_ENABLED: profile_tasks