forked from virt-manager/virt-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.67 KB
/
test-against-libvirt-git.yml
File metadata and controls
63 lines (53 loc) · 1.67 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
name: Test against libvirt.git
on:
# Run every 3 days at midnight
schedule:
- cron: '0 0 */3 * *'
jobs:
test-against-libvirt-git:
# Only run this if on the main 'virt-manager/virt-manager' repo, not forks
if: "contains(github.repository, 'virt-manager/virt-manager')"
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install RPM build and libvirt deps
run: |
# glibc-langpacks-en needed to work around python locale issues
dnf install -y \
rpm-build \
dnf-plugins-core \
glibc-langpack-en \
python3-pytest \
python3-pytest-error-for-skips
dnf install -y \
gettext \
python3-devel \
python3-docutils \
meson
dnf builddep -y libvirt
- uses: actions/checkout@v5
- name: Build RPM and test install
run: |
git config --global --add safe.directory $PWD
meson setup build \
-Dupdate-icon-cache=false \
-Dcompile-schemas=false \
-Dtests=disabled
meson dist -C build
rpmbuild -tb build/meson-dist/virt-manager*.tar.xz
dnf install -y \
~/rpmbuild/RPMS/noarch/virt-install*.rpm \
~/rpmbuild/RPMS/noarch/virt-manager-common*.rpm
- name: checkout and build libvirt
run: |
git clone --depth=1 https://gitlab.com/libvirt/libvirt
cd libvirt
meson build
ninja -C build
cd ..
- name: Run test suite
run: |
# Treat any `skips` as `errors`. We should only be
# skipping tests on old libvirt versions
./libvirt/build/run pytest --error-for-skips