24
24
container : [
25
25
" archlinux:latest" ,
26
26
" debian:testing" ,
27
- " quay.io/centos/centos:stream8 " ,
27
+ " quay.io/centos/centos:stream9 " ,
28
28
" quay.io/fedora/fedora:rawhide" ,
29
29
" ubuntu:focal" ,
30
30
]
33
33
name : ${{ matrix.container }}
34
34
steps :
35
35
- name : Repository checkout
36
- uses : actions/checkout@v2
36
+ uses : actions/checkout@v4
37
37
38
38
- name : Install dependencies
39
39
shell : bash
@@ -45,34 +45,39 @@ jobs:
45
45
gcc
46
46
git
47
47
pkg-config
48
- python3
49
48
systemd
50
49
)
51
50
52
51
case "$DIST_ID" in
53
52
arch)
54
- pacman --noconfirm -Sy "${DEPS_COMMON[@]}" systemd-libs
53
+ pacman --noconfirm -Sy python3 || echo "Issue installing/upgrading python3"
55
54
python3 -m ensurepip
55
+ python3 -m pip install --upgrade pip || echo "can't upgrade pip"
56
+ pacman --noconfirm -Sy "${DEPS_COMMON[@]}" systemd-libs
56
57
;;
57
58
centos|fedora)
58
- dnf -y install "${DEPS_COMMON[@]}" systemd-devel python3-devel python3-pip
59
+ dnf -y install python3 python3-devel python3-pip
60
+ python3 -m pip install --upgrade pip || echo "can't upgrade pip"
61
+ dnf -y install "${DEPS_COMMON[@]}" systemd-devel
59
62
;;
60
63
ubuntu|debian)
61
64
apt -y update
65
+ DEBIAN_FRONTEND=noninteractive apt -y install python3 python3-dev python3-pip
66
+ python3 -m pip install --upgrade pip || echo "can't upgrade pip"
62
67
DEBIAN_FRONTEND=noninteractive apt -y install "${DEPS_COMMON[@]}" libsystemd-dev python3-dev python3-pip
63
68
;;
64
69
*)
65
70
echo >&2 "Invalid distribution ID: $DISTRO_ID"
66
71
exit 1
67
72
esac
68
73
69
- python3 -m pip install pytest sphinx
74
+ python3 -m pip install --break-system-packages pytest sphinx
70
75
71
76
- name : Build & install
72
77
shell : bash
73
78
run : |
74
79
set -x
75
- python3 -m pip install -I -v .
80
+ python3 -m pip install --break-system-packages - I -v .
76
81
# Avoid importing the systemd module from the git repository
77
82
cd /
78
83
python3 -c 'from systemd import journal; print(journal.__version__)'
0 commit comments