From c88beb44f60e7c66a77b69e3c5f5edec163c1a56 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Fri, 3 Jul 2026 20:15:44 +0200 Subject: Add simpler molecule tests --- .github/workflows/molecule.yml | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/molecule.yml (limited to '.github/workflows/molecule.yml') diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml new file mode 100644 index 0000000..4c01f19 --- /dev/null +++ b/.github/workflows/molecule.yml @@ -0,0 +1,45 @@ +--- +name: Molecule + +"on": + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + molecule: + name: Run Molecule Scenario + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + scenario: + - default + + env: + PY_COLORS: "1" + ANSIBLE_FORCE_COLOR: "1" + ANSIBLE_ALLOW_BROKEN_CONDITIONALS: "True" + ANSIBLE_INJECT_INVOCATION: "true" + steps: + - name: Check out the codebase + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install test dependencies + run: | + python -m pip install --upgrade pip + python -m pip install ansible-core docker molecule molecule-plugins[docker] pytest pytest-testinfra requests + + - name: Install Ansible collections + run: ansible-galaxy collection install community.crypto + + - name: Run Molecule scenario + run: molecule test -s "${{ matrix.scenario }}" -- cgit v1.2.3