Skip to content

Commit 034c4e5

Browse files
committed
tests: Change github actions workflow to test with podman 5.4.2
Signed-off-by: Monika Kairaityte <[email protected]>
1 parent 8af3cdb commit 034c4e5

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,34 @@ jobs:
1919
options: --privileged --cgroupns=host
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Install dependencies
22+
- name: Download necessary .deb files from man-compose-test-data repository
23+
run: |
24+
BASE_URL="https://raw.githubusercontent.com/mokibit/podman-compose-test-data/tree/main/deb_files/podman-5.4.2"
25+
26+
FILES=(
27+
"podman_5.4.2+composetest-1_amd64.deb"
28+
"podman-docker_5.4.2+composetest-1_amd64.deb"
29+
"podman-remote_5.4.2+composetest-1_amd64.deb"
30+
)
31+
for FILE in "${FILES[@]}"; do
32+
URL="${BASE_URL}/${FILE}"
33+
echo "Downloading: $URL"
34+
curl -L -f -O "$URL" || { echo "Failed to download $FILE"; exit 1; }
35+
done
36+
- name: Install podman v5.4.2 from .deb packages
37+
run: |
38+
dpkg -i podman_5.4.2+composetest-1_amd64.deb
39+
dpkg -i podman-docker_5.4.2+composetest-1_amd64.deb
40+
dpkg -i podman-remote_5.4.2+composetest-1_amd64.deb
41+
apt-get install -f -y
42+
- name: Verify podman installation
43+
run: |
44+
podman --version
45+
podman-remote --version
46+
podman-docker version || echo "podman-docker not available"
47+
- name: Install other test dependencies
2348
run: |
2449
set -e
25-
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y podman
2650
python -m pip install --upgrade pip
2751
pip install -r requirements.txt
2852
pip install -r test-requirements.txt

0 commit comments

Comments
 (0)