Configure dependabot for pip requirements #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Check only *.yml extension is used | |
run: find . -name '*.yaml' | grep -v .pre-commit-config.yaml && exit 1 || echo OK | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
cache: pip | |
cache-dependency-path: ./requirements-test.txt | |
- name: Install dependencies | |
run: pip install -r requirements-test.txt | |
- name: Ansible lint | |
run: ansible-lint --offline --strict | |
molecule: | |
name: Molecule | |
runs-on: ubuntu-latest | |
needs: lint | |
strategy: | |
matrix: | |
distro: | |
- name: debian | |
version: "12" | |
- name: ubuntu | |
version: "22.04" | |
- name: ubuntu | |
version: "24.04" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
cache: pip | |
cache-dependency-path: ./requirements-test.txt | |
- name: Install dependencies | |
run: pip install -r requirements-test.txt | |
- name: Molecule | |
run: DISTRO_NAME=${{ matrix.distro.name }} DISTRO_VER=${{ matrix.distro.version }} molecule test |