Skip to content

Commit 950b3f5

Browse files
committed
tests: Change github actions workflow to test with podman 5.4.2
This commit updates the GitHub Actions workflow to collect .deb packages from another directory, enabling the installation of a newer Podman version on Debian Bookworm. Signed-off-by: Monika Kairaityte <[email protected]>
1 parent f618ff3 commit 950b3f5

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
13+
podman-version: ['4.3.1', '5.4.2']
1314

1415
runs-on: ubuntu-latest
1516
container:
@@ -19,10 +20,46 @@ jobs:
1920
options: --privileged --cgroupns=host
2021
steps:
2122
- uses: actions/checkout@v4
22-
- name: Install dependencies
23+
- name: Install podman4.3.1
24+
if: matrix.podman-version == '4.3.1'
2325
run: |
2426
set -e
2527
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y podman
28+
- name: Install dependencies for dpkg
29+
if: matrix.podman-version == '5.4.2'
30+
shell: bash
31+
run: |
32+
DEBIAN_FRONTEND=noninteractive apt update -y
33+
DEBIAN_FRONTEND=noninteractive apt-get install -y conmon crun golang-github-containers-common netavark libgpgme11 libsubid4
34+
DEBIAN_FRONTEND=noninteractive apt update -y && apt upgrade -y buildah crun
35+
- name: Download necessary .deb files from man-compose-test-data repository
36+
if: matrix.podman-version == '5.4.2'
37+
shell: bash
38+
run: |
39+
BASE_URL="https://raw.githubusercontent.com/mokibit/podman-compose-test-data/main/deb_files/podman-5.4.2"
40+
41+
FILES=(
42+
"podman_5.4.2+composetest-1_amd64.deb"
43+
"podman-docker_5.4.2+composetest-1_amd64.deb"
44+
"podman-remote_5.4.2+composetest-1_amd64.deb"
45+
)
46+
for FILE in "${FILES[@]}"; do
47+
URL="${BASE_URL}/${FILE}"
48+
echo "Downloading: $FILE"
49+
curl -L -f -O "$URL" || { echo "Failed to download $FILE"; exit 1; }
50+
done
51+
- name: Install podman v5.4.2 from .deb packages
52+
if: matrix.podman-version == '5.4.2'
53+
run: |
54+
dpkg -i *.deb
55+
apt-get install -f -y
56+
- name: Verify podman installation
57+
run: |
58+
podman --version
59+
podman-docker version || echo "podman-docker not available"
60+
- name: Install other test dependencies
61+
run: |
62+
set -e
2663
python -m pip install --upgrade pip
2764
pip install -r requirements.txt
2865
pip install -r test-requirements.txt

0 commit comments

Comments
 (0)