A container that is used for GitHub actions molecule.
This container contains:
- podman - Used by molecule to start instances using the
podmandriver. - git - Used to pull data from a repository.
- molecule - Used to orchestrate the tests.
- tox - Used to test multiple version of ansible if
tox.iniexists. - pyenv - Used to manage python versions.
- python (upstream supported versions) - Used by Ansible to run and can be used with tox to test multiple versions.
- testinfra - Used to test your infrastructure.
- ansible-later - A best practice scanner and linting tool.
- ansible-lint - A command-line tool for linting playbooks, roles and collections aimed towards any Ansible users.
- yamllint - A command-line tool for linting YAML files.
The default behaviour is to:
- See if
tox.iniexists -> Runtox - Otherwise -> Run
molecule test - Retry either (
toxormolecule) 3 times. - Run
testifcommandis not set. - Test the
defaultscenario ifscenarioin not set.
Read how to test locally.