-
Notifications
You must be signed in to change notification settings - Fork 28
65 lines (58 loc) · 1.55 KB
/
tests.yaml
File metadata and controls
65 lines (58 loc) · 1.55 KB
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
62
63
64
65
name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: centos-stream-9
shortcut: c9s
container-name: el9stream
packages:
- gcc
- libxml2-devel
- python3
- python3-pip
- python3-devel
- python3-setuptools
- python3.11
- python3.11-pip
- python3.11-devel
- python3.11-setuptools
- python3.12
- python3.12-pip
- python3.12-devel
- python3.12-setuptools
- name: centos-stream-10
shortcut: c10s
container-name: el10stream
packages:
- gcc
- libxml2-devel
- python3
- python3-pip
- python3-devel
- python3-setuptools
name: ${{ matrix.name }}
container:
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
steps:
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: Install dependencies
run: |
dnf install -y ${{ join(matrix.packages, ' ') }}
python -m venv /venv
source /venv/bin/activate
python3 -m pip install tox
- name: Run tests
run: |
source /venv/bin/activate
.automation/generate-setup-files.sh
tox