Skip to content

Commit 7ffea4e

Browse files
committed
tests: Change github actions workflow to test with podman 5.4.2
Signed-off-by: Monika Kairaityte <monika@kibit.lt>
1 parent 8af3cdb commit 7ffea4e

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,35 @@ 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+
shell: bash
24+
run: |
25+
BASE_URL="https://raw.githubusercontent.com/mokibit/podman-compose-test-data/tree/main/deb_files/podman-5.4.2"
26+
27+
FILES=(
28+
"podman_5.4.2+composetest-1_amd64.deb"
29+
"podman-docker_5.4.2+composetest-1_amd64.deb"
30+
"podman-remote_5.4.2+composetest-1_amd64.deb"
31+
)
32+
for FILE in "${FILES[@]}"; do
33+
URL="${BASE_URL}/${FILE}"
34+
echo "Downloading: $URL"
35+
curl -L -f -O "$URL" || { echo "Failed to download $FILE"; exit 1; }
36+
done
37+
- name: Install podman v5.4.2 from .deb packages
38+
run: |
39+
dpkg -i podman_5.4.2+composetest-1_amd64.deb
40+
dpkg -i podman-docker_5.4.2+composetest-1_amd64.deb
41+
dpkg -i podman-remote_5.4.2+composetest-1_amd64.deb
42+
apt-get install -f -y
43+
- name: Verify podman installation
44+
run: |
45+
podman --version
46+
podman-remote --version
47+
podman-docker version || echo "podman-docker not available"
48+
- name: Install other test dependencies
2349
run: |
2450
set -e
25-
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y podman
2651
python -m pip install --upgrade pip
2752
pip install -r requirements.txt
2853
pip install -r test-requirements.txt

0 commit comments

Comments
 (0)