From dbf301f344fd6e79a2a0e4df728bf81e723ec03d Mon Sep 17 00:00:00 2001 From: Priyagupta108 Date: Thu, 28 May 2026 14:43:25 +0530 Subject: [PATCH] Update RHEL build workflow to include tk package and enhance library path resolution in tests --- .github/workflows/build-python-packages.yml | 2 +- tests/sources/python-config-test.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 7c9aebe..5f38d06 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -127,7 +127,7 @@ jobs: run: | RHEL_VERSION=$(rpm -E %rhel) sudo dnf install -y "https://packages.microsoft.com/config/rhel/${RHEL_VERSION}/packages-microsoft-prod.rpm" - sudo dnf install -y powershell git + sudo dnf install -y powershell git tk - name: Check out repository code uses: actions/checkout@v6 diff --git a/tests/sources/python-config-test.py b/tests/sources/python-config-test.py index cc47ec0..4aaa226 100644 --- a/tests/sources/python-config-test.py +++ b/tests/sources/python-config-test.py @@ -34,7 +34,8 @@ else: if pkg_installer: expected_lib_dir_path = f'/Library/Frameworks/{framework_name}/Versions/{version_major}.{version_minor}/lib' else: - expected_lib_dir_path = f'{os.getenv("AGENT_TOOLSDIRECTORY")}/Python/{version}/{architecture}/lib' + tools_dir = os.getenv("AGENT_TOOLSDIRECTORY") or os.getenv("RUNNER_TOOL_CACHE") + expected_lib_dir_path = f'{tools_dir}/Python/{version}/{architecture}/lib' # Check modules ### Validate libraries path