From 0e4d7e561a361651f03847ba5bfe6dcc990a3230 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Tue, 21 Jan 2025 22:25:25 -0800 Subject: [PATCH] Improve pip-tools installation in update CI --- .github/workflows/update.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 65f8cd91c..e116c4e34 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -51,14 +51,19 @@ jobs: case ${ID,,} in ubuntu|debian) apt update - INSTALLER_CMD="apt-get -y --no-install-recommends -q=3 install" + INSTALLER_CMD="apt-get -y --no-install-recommends -q=3 install libc6-dev git" ;; rhel|centos|fedora|rocky) - INSTALLER_CMD="$(command -v dnf || command -v yum) -y --quiet --errorlevel=0 install" + INSTALLER_CMD="$(command -v dnf || command -v yum) -y --quiet --errorlevel=0 install glibc-devel git" ;; esac - $INSTALLER_CMD python3-pip git - pip3 install pip-tools + $INSTALLER_CMD + - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # 5.3.0 + with: + python-version: "3.9.21" # NOTE: https://www.python.org/downloads/ https://docs.openstack.org/tempest/latest/supported_version.html#supported-python-versions + - uses: insightsengineering/pip-action@9252b12ade07a9e628ab42b90565beaa56e8b85c # 2.0.1 + with: + packages: pip-tools - uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4 with: EXECUTE_COMMANDS: |