-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 996 Bytes
/
ci.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
---
name: CI
"on":
push:
branches:
- main
pull_request:
repository_dispatch:
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.10"]
steps:
- name: Check out code
uses: actions/checkout@v2
with:
path: /home/runner/work/common_criteria_demo/common_criteria_demo
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Install yamllint, ansible and molecule
run: |
python -m pip install --upgrade pip
pip install yamllint 'molecule>=6.0.3' 'molecule-plugins[docker]>=23.5.3' ansible-core flake8 ansible-lint voluptuous
- name: Run molecule test
run: |
ansible-galaxy collection install -r molecule/requirements.yml
molecule test --all
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"