Skip to content

Commit

Permalink
Setting site packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rtabbara committed Sep 29, 2023
1 parent e33f9ca commit 96d3c26
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ jobs:
run: |
BLENDER_PYTHON=$(find blender/ -regextype posix-extended -regex '.*bin\/python(.exe|[0-9].[0-9]{1,2}m?)' -print -quit)
echo "Blender Python is $BLENDER_PYTHON"
SITE_PACKAGES=$(./$BLENDER_PYTHON -c "import site; print(site.getsitepackages()[0])")
./$BLENDER_PYTHON -m ensurepip
./$BLENDER_PYTHON -m pip install -U pip
./$BLENDER_PYTHON -m pip install --upgrade pytest pytest-cov
./$BLENDER_PYTHON -m pip install mitsuba==${{ matrix.environment.mitsuba-version }} --force-reinstall
./$BLENDER_PYTHON -m pip install -U pip --target=$SITE_PACKAGES
./$BLENDER_PYTHON -m pip install --upgrade pytest pytest-cov --target=$SITE_PACKAGES
./$BLENDER_PYTHON -m pip install mitsuba==${{ matrix.environment.mitsuba-version }} --force-reinstall --target=$SITE_PACKAGES
- name: Run Addon test suite
shell: bash
Expand Down

0 comments on commit 96d3c26

Please sign in to comment.