From 857afe1f6ce2113e8c81d8fa84f98f4bca28bab6 Mon Sep 17 00:00:00 2001 From: bennibbelink <79653949+bennibbelink@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:54:00 -0500 Subject: [PATCH] use python version to find site-packages --- .github/workflows/build_test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index bfe508be2..d42e56bde 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -53,6 +53,7 @@ jobs: - name: Cycamore Python Tests run: | - export PYTHONPATH=$(python -m site --user-site) - echo $PYTHONPATH + export major=$(python -c "import sys; print(sys.version_info.major)") + export minor=$(python -c "import sys; print(sys.version_info.minor)") + export PYTHONPATH=/root/.local/lib/python${major}.${minor}/site-packages cd tests && python -m pytest