Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
enable archlinux in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Nov 27, 2021
1 parent a2801e2 commit 45c1f58
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,53 +33,53 @@ jobs:
# VALIDATE_MARKDOWN: true
VALIDATE_YAML: true

# arch_standard:
# name: "${{ matrix.image }} / python: ${{ matrix.python-version }}, ansible: ${{ matrix.ansible-version }}"
# needs:
# - lint
# runs-on: ubuntu-18.04
# strategy:
# fail-fast: false
# matrix:
# image:
# - archlinux:latest
# python-version:
# - '3.9'
# ansible-version:
# - '2.10'
#
# steps:
# - name: check out the codebase.
# uses: actions/checkout@v2
# with:
# path: 'ansible-icingadb'
#
# - name: set up python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r test-requirements.txt
#
# # See: https://github.com/geerlingguy/ansible-role-mysql/issues/422
# - name: Disable AppArmor
# run: |
# set -x
# sudo apt-get install apparmor-profiles
# sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
# sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
#
# - name: test with tox
# run: |
# tox -e py$(printf "${{ matrix.python-version }}" | tr -d '.')-ansible$(printf "${{ matrix.ansible-version }}" | tr -d '.') -- \
# molecule test
# env:
# PY_COLORS: '1'
# ANSIBLE_FORCE_COLOR: '1'
# DISTRIBUTION: ${{ matrix.image }}
arch_standard:
name: "${{ matrix.image }} / python: ${{ matrix.python-version }}, ansible: ${{ matrix.ansible-version }}"
needs:
- lint
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
image:
- archlinux:latest
python-version:
- '3.9'
ansible-version:
- '2.10'

steps:
- name: check out the codebase.
uses: actions/checkout@v2
with:
path: 'ansible-icingadb'

- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test-requirements.txt
# See: https://github.com/geerlingguy/ansible-role-mysql/issues/422
- name: Disable AppArmor
run: |
set -x
sudo apt-get install apparmor-profiles
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: test with tox
run: |
tox -e py$(printf "${{ matrix.python-version }}" | tr -d '.')-ansible$(printf "${{ matrix.ansible-version }}" | tr -d '.') -- \
molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
DISTRIBUTION: ${{ matrix.image }}

deb_standard:
name: "${{ matrix.image }} / python: ${{ matrix.python-version }}, ansible: ${{ matrix.ansible-version }}"
Expand Down

0 comments on commit 45c1f58

Please sign in to comment.