Skip to content

Commit

Permalink
[#185040688] Ergänze Molecule PIN
Browse files Browse the repository at this point in the history
- ansible/molecule#3883
- Ansible Compat PIN, da neuere Versionen Ansible > 2.12 erfordern, ansible/ansible-compat#215
  • Loading branch information
eifelmicha committed Apr 26, 2023
1 parent 5b1a0d7 commit 56a9431
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ inputs:
ansible_version:
description: Ansible version to use, leave empty for newest
default: ''
ansible_compat_version:
description: ansible-compat version to use, leave empty for newest
default: ''
distro:
description: 'Execute tests against distribution'
default: 'ubuntu-20.04'
molecule_version:
description: Molecule version to use, leave empty for newest
default: ''
python_version:
description: Python version to use
default: '3.x'
Expand Down Expand Up @@ -75,8 +81,14 @@ runs:
env:
TEST_TYPE: "${{ inputs.test_type }}"

- name: Install test dependencies for older ansible versions
if: "${{ inputs.molecule_version != '' }}"
run: pip install 'ansible-compat{{ inputs.ansible_compat_version }}' 'ansible${{ inputs.ansible_version }}' 'molecule${{ inputs.molecule_version }}' molecule[docker] docker netaddr jmespath dnspython 'Jinja2${{ inputs.jinja2_version }}'
shell: bash

- name: Install test dependencies
run: pip install 'ansible${{ inputs.ansible_version }}' molecule-plugins[docker] docker netaddr jmespath dnspython 'Jinja2${{ inputs.jinja2_version }}'
if: "${{ inputs.molecule_version == '' }}"
run: pip install 'ansible${{ inputs.ansible_version }}' 'molecule${{ inputs.molecule_version }}' molecule-plugins[docker] docker netaddr jmespath dnspython 'Jinja2${{ inputs.jinja2_version }}'
shell: bash

- name: Pip list
Expand Down

0 comments on commit 56a9431

Please sign in to comment.