{"id":15140753,"url":"https://github.com/bec-galaxy/setup-molecule","last_synced_at":"2026-01-20T11:05:51.663Z","repository":{"id":163652263,"uuid":"633753327","full_name":"bec-galaxy/setup-molecule","owner":"bec-galaxy","description":"Set up your GitHub Actions workflow with the Ansible testing framework Molecule.","archived":false,"fork":false,"pushed_at":"2023-05-10T20:00:52.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-18T18:56:41.504Z","etag":null,"topics":["ansible","docker","github-action","molecule"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bec-galaxy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T07:47:49.000Z","updated_at":"2023-11-30T15:08:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"61ef4472-46ca-4ae0-992b-1e1c239e8382","html_url":"https://github.com/bec-galaxy/setup-molecule","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"f0d51f691b035a17bdb43e9a603676aabf076480"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bec-galaxy%2Fsetup-molecule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bec-galaxy%2Fsetup-molecule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bec-galaxy%2Fsetup-molecule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bec-galaxy%2Fsetup-molecule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bec-galaxy","download_url":"https://codeload.github.com/bec-galaxy/setup-molecule/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247487841,"owners_count":20946834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","docker","github-action","molecule"],"created_at":"2024-09-26T08:40:42.356Z","updated_at":"2026-01-20T11:05:51.656Z","avatar_url":"https://github.com/bec-galaxy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" width=\"22%\" src=\"docs/molecule-logo.png\" alt=\"molecule logo\"/\u003e\n\n# setup-molecule\n\n[![Test](https://github.com/bec-galaxy/setup-molecule/actions/workflows/test.yml/badge.svg)](https://github.com/bec-galaxy/setup-molecule/actions/workflows/test.yml)\n\nThis action provides the following functionality for GitHub Actions users:\n\n- Installing Python.\n- Installing the latest version of Molecule with Docker.\n\n\u003e This action is a rolling release, it will install the latest dependencies on each run. Use [the official Ansible action](https://github.com/marketplace/actions/ansible-lint) for more stability. See [Ansible Creator Execution Environment](https://github.com/ansible/creator-ee) for additional information.\n\n## Basic usage\n\nSee [action.yml](action.yml)\n\n**Molecule**\n```yaml\nsteps:\n  - name: Checkout the codebase\n    uses: actions/checkout@v3\n\n  - name: Setup Molecule\n    uses: bec-galaxy/setup-molecule@{Version}\n\n  - name: Run Molecule tests\n    run: molecule test\n```\n\n**Lint and Molecule**\n```yaml\n---\nname: Molecule\n\n\"on\":\n  pull_request:\n\nenv:\n  PY_COLORS: \"1\"\n  ANSIBLE_FORCE_COLOR: \"1\"\njobs:\n  lint:\n    name: Lint\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout the codebase\n        uses: actions/checkout@v3\n\n      - name: Setup Lint\n        uses: bec-galaxy/setup-lint@{Version}\n\n      - name: Run Lint tests\n        run: ansible-lint\n\n  molecule:\n    name: Molecule\n    runs-on: ubuntu-latest\n    needs: lint\n    steps:\n      - name: Checkout the codebase\n        uses: actions/checkout@v3\n\n      - name: Setup Molecule\n        uses: bec-galaxy/setup-molecule@{Version}\n\n      - name: Run Molecule tests\n        run: molecule test\n```\n\nBuilt-in Lint support has been [removed from Molecule](https://github.com/ansible-community/molecule/discussions/3825#discussioncomment-4908366).\n\n\u003e Environment variables `PY_COLORS` and `ANSIBLE_FORCE_COLOR` are optional and only activate the color output in the pipline.\n\n## Packages\n\nThe following python packages are installed in this action:\n\n- [ansible](https://pypi.org/project/ansible/)\n- [molecule](https://pypi.org/project/molecule/)\n- [molecule-plugins](https://pypi.org/project/molecule-plugins/)\n- [docker](https://pypi.org/project/docker/)\n\n\u003e Package `molecule-plugins` is a breaking change and is required since `molecule` version 5.0.0.\n\n## Molecule file\n\nA Molecule sample file for this action.\n\n```yaml\n---\ndependency:\n  name: galaxy\ndriver:\n  name: docker\nplatforms:\n  - name: ubuntu-20.04\n    image: ubuntu:20.04\n  - name: ubuntu-22.04\n    image: ubuntu:22.04\nprovisioner:\n  name: ansible\n  inventory:\n    group_vars:\n      all:\n        ansible_user: root\nscenario:\n  name: default\n```\n\n## Licence\n\nThis project is licensed under MIT - See the [LICENSE](LICENSE) file for more information.\n\n---\n\n\u0026uarr; [Back to top](#)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbec-galaxy%2Fsetup-molecule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbec-galaxy%2Fsetup-molecule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbec-galaxy%2Fsetup-molecule/lists"}