Skip to content

Commit

Permalink
use python version to find site-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Jan 26, 2024
1 parent 645e8ec commit 857afe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 857afe1

Please sign in to comment.