From 7e16042e91a6b9919b91fac6514b3271887903d4 Mon Sep 17 00:00:00 2001 From: "Ritesh Harjani (IBM)" Date: Fri, 26 Jul 2024 16:15:46 +0530 Subject: [PATCH] .github/workflows/xfstests: Fix ubuntu and opensuse version requirements For ubuntu:latest Latest pip3 mandates to use virtual managed environment for pip packages. However since this is mainly automation and we know what we ar doing so pass the flag ("--break-system-packages") to force pip to install the package system wide. For opensuse/leap:latest Latest avocado-framework=100 and PyYAML=6.0.2 are incompatible. So move avocado-framework to 100.1 and PyYAML=6.0.1 which are still compatible. Signed-off-by: Ritesh Harjani (IBM) --- .github/workflows/xfstests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/xfstests.yaml b/.github/workflows/xfstests.yaml index 00d3ce13b..34df07094 100644 --- a/.github/workflows/xfstests.yaml +++ b/.github/workflows/xfstests.yaml @@ -55,13 +55,13 @@ jobs: docker exec avocado_test_container bash -c "\ if [[ '${{ matrix.container }}' == 'ubuntu:latest' ]]; then \ apt-get update && apt-get -y upgrade && apt-get install -y build-essential python3 python3-pip && \ - pip3 install avocado-framework && pip3 install avocado-framework-plugin-varianter-yaml-to-mux; \ + pip3 install --break-system-packages avocado-framework && pip3 install --break-system-packages avocado-framework-plugin-varianter-yaml-to-mux; \ elif [[ '${{ matrix.container }}' == 'fedora:latest' ]]; then \ dnf -y update && dnf -y groupinstall 'Development Tools' && dnf -y install python3 python3-pip hostname which && \ pip3 install avocado-framework && pip3 install avocado-framework-plugin-varianter-yaml-to-mux; \ elif [[ '${{ matrix.container }}' == 'opensuse/leap:latest' ]]; then \ zypper -n update && zypper -n install -t pattern devel_basis && zypper -n install python3 python3-pip hostname which && \ - pip3 install avocado-framework==100 && pip3 install avocado-framework-plugin-varianter-yaml-to-mux==100; \ + pip3 install PyYAML==6.0.1 && pip3 install avocado-framework==100.1 && pip3 install avocado-framework-plugin-varianter-yaml-to-mux==100.1; \ fi \ "