actions-marketplace-validations/ansible-test
GitHub Action for checking Ansible Collections with ansible-test
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 14, 2022
- License
- GPL 3.0
Pinned Snippet
uses: actions-marketplace-validations/ansible-community_ansible-test-gh-action@ce3e83585495ccb95be59a9698a342f50e0d929a # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| ansible-core-version | `ansible-core` Git revision. See https://github.com/ansible/ansible/tags and https://github.com/ansible/ansible/branches/all?query=stable- for ideas. The repository this refers to can be changed with the `ansible-core-github-repository-slug` option. | yes | stable-2.14 |
| ansible-core-github-repository-slug | The GitHub repository slug from which to check out ansible-core | — | ansible/ansible |
| controller-python-version | Controller Python version. Only used for integration tests and ansible-core 2.12 or later when `target-python-version` is also specified. | — | auto |
| collection-root | Collection root relative to repository root | — | . |
| collection-src-directory | A pre-checked out collection directory that's already on disk, substitutes getting the source from the remote Git repository if set. This action will not attempt to mutate its contents | — | — |
| docker-image | Docker image used by ansible-test | — | — |
| git-checkout-ref | Committish to check out, unused if `collection-src-directory` is set | — | — |
| origin-python-version | Environment Python version. The value `auto` uses the maximum Python version supported by the given `ansible-core-version`. | — | auto |
| pre-test-cmd | Extra command to invoke before ansible-test | — | — |
| python-version | **(DEPRECATED)** Use `origin-python-version` instead. This is only kept for backwards compatibility. | — | — |
| target | ansible-test TARGET | — | — |
| target-python-version | Target Python version | — | — |
| testing-type | One of 'sanity', 'units' or 'integration' | yes | — |
| test-deps | Test dependencies to install along with this collection | — | — |
Outputs
| name | description |
|---|---|
| ansible-playbook-executable | Path to the auto-installed `ansible-playbook` executable |
| ansible-test-executable | Path to the auto-installed `ansible-test` executable |
| checkout-directory | Path to the auto-downloaded collection src directory |
| collection-fqcn | Detected collection FQCN |
| collection-name | Detected collection name |
| collection-namespace | Detected collection namespace |
| origin-python-path | The [`python-path` output value](https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#python-path) of the [setup-python](https://github.com/actions/setup-python/#readme) action. |
| origin-python-version | The actual value of `origin-python-version` passed to the [setup-python](https://github.com/actions/setup-python/#readme) action. |