Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

CI

CI #247

Workflow file for this run

---
name: CI
on:
workflow_run:
workflows:
- "code linter"
types:
- completed
defaults:
run:
working-directory: 'ansible-role-docker'
jobs:
arch:
name: "${{ matrix.image }} / 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:
- archlinux:latest
- artixlinux:latest
python_version:
- "3.10.11"
- "3.11.3"
ansible-version:
- "6.7"
scenario:
- default
steps:
- name: check out the codebase.
uses: actions/checkout@v3
with:
path: 'ansible-role-docker'
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python_version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: test with tox
run: |
make \
test \
-e TOX_SCENARIO="${{ matrix.scenario }}" \
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
-e DISTRIBUTION="${{ matrix.image }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
DISTRIBUTION: ${{ matrix.image }}
deb:
name: "${{ matrix.image }} / 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:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
python_version:
- "3.10.11"
- "3.11.3"
ansible-version:
- "6.7"
scenario:
- default
steps:
- name: check out the codebase.
uses: actions/checkout@v3
with:
path: 'ansible-role-docker'
ref: ${{ github.event.workflow_run.head_branch }}
- name: 🐍 set up python
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python_version }}"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
- name: test with tox
run: |
make \
test \
-e TOX_SCENARIO="${{ matrix.scenario }}" \
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
-e DISTRIBUTION="${{ matrix.image }}"
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
DISTRIBUTION: ${{ matrix.image }}
# rpm:
# name: "${{ matrix.image }} / 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:
# - oraclelinux:8
# - rockylinux:8
# - almalinux:8
# - oraclelinux:9
# - rockylinux:9
# - almalinux:9
# ansible-version:
# - '6.1'
# scenario:
# - default
#
# steps:
# - name: check out the codebase.
# uses: actions/checkout@v3
# with:
# path: 'ansible-role-docker'
# ref: ${{ github.event.workflow_run.head_branch }}
#
# - name: 🐍 set up python
# uses: actions/setup-python@v4
# with:
# python-version: '3.x'
#
# - name: install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r test-requirements.txt
#
# - name: test with tox
# run: |
# make \
# test \
# -e TOX_SCENARIO="${{ matrix.scenario }}" \
# -e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
# -e DISTRIBUTION="${{ matrix.image }}"
# env:
# PY_COLORS: '1'
# ANSIBLE_FORCE_COLOR: '1'
# DISTRIBUTION: ${{ matrix.image }}