name: CI on: push: branches: - main pull_request: jobs: sanity: runs-on: ubuntu-latest name: Sanity (Ⓐ$${{ matrix.ansible_version }}) timeout-minutes: 30 strategy: matrix: python_version: ["3.12"] ansible_version: ["v2.19.0b7", "stable-2.18", "stable-2.17"] steps: - name: Perform testing uses: ansible-community/ansible-test-gh-action@release/v1 with: ansible-core-version: ${{ matrix.ansible_version }} origin-python-version: ${{ matrix.python_version }} target-python-version: ${{ matrix.python_version }} testing-type: sanity units: runs-on: ubuntu-latest name: Units (Ⓐ$${{ matrix.ansible_version }}) timeout-minutes: 30 strategy: matrix: python_version: ["3.12"] ansible_version: ["v2.19.0b7", "stable-2.18", "stable-2.17"] steps: - name: Perform testing uses: ansible-community/ansible-test-gh-action@release/v1 with: ansible-core-version: ${{ matrix.ansible_version }} origin-python-version: ${{ matrix.python_version }} target-python-version: ${{ matrix.python_version }} testing-type: units integration: runs-on: ubuntu-latest strategy: fail-fast: false matrix: grafana_version: ["12.0.2", "11.6.3", "10.4.19"] ansible_version: ["v2.19.0b7", "stable-2.18", "stable-2.17"] python_version: ["3.12"] services: grafana: image: grafana/grafana:${{ matrix.grafana_version }} steps: - name: Perform testing uses: ansible-community/ansible-test-gh-action@release/v1 with: ansible-core-version: ${{ matrix.ansible_version }} target-python-version: ${{ matrix.python_version }} testing-type: integration molecule: runs-on: ubuntu-latest env: PY_COLORS: 1 ANSIBLE_FORCE_COLOR: 1 strategy: fail-fast: false matrix: grafana_version: ["12.0.2", "11.6.3", "10.4.19"] ansible_version: ["v2.19.0b7", "stable-2.18", "stable-2.17"] python_version: ["3.12"] services: grafana: image: grafana/grafana:${{ matrix.grafana_version }} ports: ["3000:3000"] steps: - name: Checkout repo uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python_version }} - name: Install dependencies run: | python -m pip install --no-cache-dir --upgrade pip pip install "git+https://github.com/ansible/ansible@${{ matrix.ansible_version }}" molecule molecule-plugins[docker] 'requests<2.32.0' - name: Test with molecule run: | molecule --version molecule test