Add CI and inspire other playbook #51
Workflow file for this run
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: Molecule | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'roles/**' | |
workflow_dispatch: | |
jobs: | |
molecule: | |
name: Molecule | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
roles: ["python_env"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install needs | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
ansible-galaxy install -r requirements.yml | |
- name: Run molecule | |
run: | | |
cd roles/${{ matrix.roles }} | |
molecule test |