From 957f4da2949171d7682509bc27bff95c16f8f83e Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Fri, 5 May 2023 08:16:19 -0700 Subject: [PATCH] Commit: Update Python library search path for Linux --- .github/workflows/main_automation.yml | 13 ++----------- Tests/Validations/Trends/Pandas_TA.cs | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main_automation.yml b/.github/workflows/main_automation.yml index 6d4bb577..d3681ca9 100644 --- a/.github/workflows/main_automation.yml +++ b/.github/workflows/main_automation.yml @@ -47,22 +47,13 @@ jobs: ############## Install Python -# - name: Install Python3 -# uses: actions/setup-python@v2 -# with: -# python-version: 3.x - - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y python3-dev - sudo apt-get install -y python3-pip - - name: Install pandas-ta run: | pip3 install numpy pip3 install pandas pip3 install pandas-ta + python --version + ls /home/runner/.local/lib/ ############## Install more tools diff --git a/Tests/Validations/Trends/Pandas_TA.cs b/Tests/Validations/Trends/Pandas_TA.cs index 20543765..92f3539e 100644 --- a/Tests/Validations/Trends/Pandas_TA.cs +++ b/Tests/Validations/Trends/Pandas_TA.cs @@ -464,7 +464,7 @@ public static class PythonLibrary { } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { List pythonLibraries = new List(); - List directoriesToSearch = new List { "/opt/hostedtoolcache/Python" }; // Add more directories as needed + List directoriesToSearch = new List { "/home/runner/.local/lib" }; // Add more directories as needed string filePattern = "libpython3.*.so"; SearchFiles(directoriesToSearch, filePattern, pythonLibraries);