Skip to content

ovirt-ansible-collection-2.y CI: Disable ansible sanity tests #1270

ovirt-ansible-collection-2.y CI: Disable ansible sanity tests

ovirt-ansible-collection-2.y CI: Disable ansible sanity tests #1270

Workflow file for this run

name: Build
on:
push:
branches:
- ovirt-ansible-collection-2.y
pull_request:
branches:
- ovirt-ansible-collection-2.y
workflow_dispatch:
jobs:
sanity_test:
runs-on: ubuntu-latest
name: ansible-test docker
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Build the project
run: ./build.sh build ovirt /tmp
- name: Run ansible-test sanity
run: |
cd /tmp/ansible_collections/ovirt/ovirt/
ANSIBLE_TEST_PREFER_PODMAN=1 ansible-test sanity --docker --skip-test pylint
- name: Run ansible-lint 5.0.0
run: |
cd /tmp/ansible_collections/ovirt/ovirt/
pip3 install install pycodestyle pylint==2.4.4 voluptuous yamllint rstcheck antsibull-changelog "rich<11.0.0" "ansible-lint<5.0.0" cryptography
ansible-lint roles/* -x 204
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: centos-stream-8
shortcut: cs8
container-name: el8stream
name: ${{ matrix.name }}
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Install python3.8
if: ${{ matrix.shortcut == 'cs8' }}
run: yum install python38 -y
- name: Install python3.8 modules
run: |
dnf install -y python38-devel python38-pip
pip-3.8 install pycodestyle pylint voluptuous yamllint "rstcheck<3.5.0" antsibull-changelog "rich<11.0.0" "ansible-lint>=6.0.0,<7.0.0" cryptography
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Run build.sh
run: .automation/build.sh
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts