Skip to content

test: Ensure pytest-timeout is available and skip qemu_nbd_test on ce… #722

test: Ensure pytest-timeout is available and skip qemu_nbd_test on ce…

test: Ensure pytest-timeout is available and skip qemu_nbd_test on ce… #722

Workflow file for this run

# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
EXPORT_DIR: exported-artifacts
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- distro: centos-9
env: py39
- distro: centos-9
env: py311
- distro: centos-9
env: py312
- distro: centos-10
env: py312
- distro: fedora-41
env: py313
- distro: fedora-42
env: py313
container:
image: quay.io/ovirt/ovirt-imageio-test:${{matrix.distro}}
# Required to create loop devices.
options: --privileged
steps:
- uses: actions/checkout@v4
# We need to run this in order to fix sudo execution.
# See https://github.com/rocky-linux/sig-cloud-instance-images/issues/56
- name: Fix sudo
run: chmod 0400 /etc/shadow
- name: Run tests
run: ci/test.sh ${{matrix.env}}
rpm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- centos-9
- centos-10
- fedora-41
- fedora-42
container: quay.io/ovirt/ovirt-imageio-test:${{matrix.distro}}
steps:
- uses: actions/checkout@v4
with:
# We need the latest tag for creating rpms.
fetch-depth: 0
- name: Build rpms
run: ./ci/rpm.sh
- name: Upload artidacts
uses: ovirt/upload-rpms-action@main
with:
directory: ${{env.EXPORT_DIR}}