Skip to content

CI

CI #154

Workflow file for this run

---
name: CI
on:
workflow_run:
workflows:
- "code linter"
types:
- completed
defaults:
run:
working-directory: 'ansible-automysqlbackup'
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
jobs:
arch:
name: "${{ matrix.image }} / python: ${{ matrix.python_version }} / ansible: ${{ matrix.ansible-version }}"
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
image:
- archlinux:latest
python_version:
- "3.10"
- "3.11"
ansible-version:
- '8.5'
scenario:
- default
steps:
- name: check out the codebase.
uses: actions/checkout@v4
with:
path: 'ansible-automysqlbackup'
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: force reinstall of community.docker
run: |
mkdir -p /home/runner/.ansible/collections
ansible-galaxy collection install community.docker --force
- name: test with tox
run: |
make \
test \
-e TOX_SCENARIO="${{ matrix.scenario }}" \
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
-e DISTRIBUTION="${{ matrix.image }}"
debian:
name: "${{ matrix.image }} / python: ${{ matrix.python_version }} / ansible: ${{ matrix.ansible-version }}"
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'schedule' || github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
image:
- debian:12
python_version:
- "3.10"
- "3.11"
ansible-version:
- '8.5'
scenario:
- default
steps:
- name: check out the codebase.
uses: actions/checkout@v4
with:
path: 'ansible-automysqlbackup'
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: force reinstall of community.docker
run: |
mkdir -p /home/runner/.ansible/collections
ansible-galaxy collection install community.docker --force
- name: test with tox
run: |
make \
test \
-e TOX_SCENARIO="${{ matrix.scenario }}" \
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
-e DISTRIBUTION="${{ matrix.image }}"
ubuntu:
name: "${{ matrix.image }} / python: ${{ matrix.python_version }} / ansible: ${{ matrix.ansible-version }}"
runs-on: ubuntu-20.04
needs:
- debian
strategy:
fail-fast: false
matrix:
image:
- ubuntu:22.04
python_version:
- "3.10"
- "3.11"
ansible-version:
- '8.5'
scenario:
- default
steps:
- name: check out the codebase.
uses: actions/checkout@v4
with:
path: 'ansible-automysqlbackup'
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python_version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: force reinstall of community.docker
run: |
mkdir -p /home/runner/.ansible/collections
ansible-galaxy collection install community.docker --force
- name: test with tox
run: |
make \
test \
-e TOX_SCENARIO="${{ matrix.scenario }}" \
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
-e DISTRIBUTION="${{ matrix.image }}"