This commit is contained in:
Robert de Bock 2024-07-01 14:57:47 +02:00
parent f5f7444a59
commit ebdb95d640
1 changed files with 13 additions and 5 deletions

View File

@ -41,15 +41,23 @@ jobs:
with:
path: {% raw %}"${{ github.repository }}"{% endraw %}
- name: molecule
uses: {{ molecule_action }}
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
image: {% raw %}${{ matrix.config.image }}{% endraw %}
python-version: '3.x'
tag: {% raw %}${{ matrix.config.tag }}{% endraw %}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# pip install molecule molecule-plugins[docker] docker ansible
pip install -r requirements.txt
{% if github_variables_mapping is defined %}
- name: molecule
run: molecule converge
env:
image: {% raw %}${{ matrix.config.image }}{% endraw %}
tag: {% raw %}${{ matrix.config.tag }}{% endraw %}
{% if github_variables_mapping is defined %}
{% for item in github_variables_mapping %}
{{ item.variable }}: {% raw %}${{ {%endraw %}{{ item.name }} {% raw %}}}{% endraw %}
{% endfor %}