forked from oVirt/ovirt-imageio
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (60 loc) · 1.41 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
name: CI
on:
- push
- pull_request
env:
EXPORT_DIR: exported-artifacts
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- distro: centos-8
env: py36
- distro: centos-8
env: py39
- distro: centos-9
env: py39
- distro: centos-9
env: py311
- distro: fedora-36
env: py310
- distro: fedora-37
env: py311
- distro: fedora-38
env: py311
container:
image: quay.io/ovirt/ovirt-imageio-test:${{matrix.distro}}
# Required to create loop devices.
options: --privileged
steps:
- uses: actions/checkout@v2
- name: Run tests
run: ci/test.sh ${{matrix.env}}
rpm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- centos-8
- centos-9
- fedora-36
- fedora-37
- fedora-38
container: quay.io/ovirt/ovirt-imageio-test:${{matrix.distro}}
steps:
- uses: actions/checkout@v2
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@v2
with:
directory: ${{env.EXPORT_DIR}}