Skip to content

Commit

Permalink
.github/workflows/xfstests: Fix ubuntu and opensuse version requirements
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
riteshharjani committed Jul 26, 2024
1 parent b45ee53 commit 7e16042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/xfstests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
"
Expand Down

0 comments on commit 7e16042

Please sign in to comment.