From e1dd54875c7ba675dc69180d6e7b2c4525df4e37 Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Fri, 5 Dec 2025 12:39:11 +0400 Subject: [PATCH] Add a CI workflow for Molecule --- .github/workflows/molecule.yml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/molecule.yml diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml new file mode 100644 index 0000000..f88ec75 --- /dev/null +++ b/.github/workflows/molecule.yml @@ -0,0 +1,44 @@ +--- +name: molecule + +on: + pull_request: + branches: [ "master" ] + push: + branches: [ "master" ] + +jobs: + + molecule: + name: molecule + runs-on: ubuntu-latest + timeout-minutes: 10 + + strategy: + matrix: + distro: + - ubuntu2404 + - ubuntu2204 + + steps: + - uses: actions/checkout@v6 + + - uses: mamba-org/setup-micromamba@4d84239119b14cba1690b971f05c0bab912bea04 + with: + micromamba-version: '2.4.0-0' + environment-file: ci/conda.yml + init-shell: bash + post-cleanup: 'all' + cache-environment: true + + - name: "Install role dependencies" + run: ansible-galaxy install -r requirements.yml + shell: micromamba-shell {0} + + - name: "Run Molecule tests" + run: molecule test + shell: micromamba-shell {0} + env: + PY_COLORS: '1' + ANSIBLE_FORCE_COLOR: '1' + MOLECULE_DISTRO: ${{ matrix.distro }}