Skip to content

Commit 0e7ef5b

Browse files
committed
Update blender-test.yml
1 parent 0447042 commit 0e7ef5b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/blender-test.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ jobs:
3838
mkdir -p "${{ env.BLENDER_DIR }}"
3939
wget -qO- "${DOWNLOAD_URL}" | tar -xJ --strip-components=1 -C "${{ env.BLENDER_DIR }}"
4040
41-
- name: Install pytest in Blender's Python
42-
run: |
43-
PYTHON_BIN=$(find "${{ env.BLENDER_DIR }}" -type f -name "python3*" | head -n 1)
44-
echo "Using Python binary: ${PYTHON_BIN}"
45-
46-
"${{ env.BLENDER_DIR }}/blender" --background --python-expr \
47-
"import subprocess as sp; \
48-
sp.run([r'${PYTHON_BIN}', '-m', 'ensurepip'], check=True); \
49-
sp.run([r'${PYTHON_BIN}', '-m', 'pip', 'install', '--upgrade', 'pip'], check=True); \
50-
sp.run([r'${PYTHON_BIN}', '-m', 'pip', 'install', 'pytest'], check=True)"
51-
5241
- name: Download wheels to build Blender extension
5342
run: |
5443
PYTHON_BIN=$(find "${{ env.BLENDER_DIR }}" -type f -name "python3*" | head -n 1)
@@ -64,6 +53,11 @@ jobs:
6453
echo "Extension zip file: ${EXTENSION_ZIP}"
6554
"${{ env.BLENDER_DIR }}/blender" --command extension install-file --repo user_default --enable "${EXTENSION_ZIP}"
6655
56+
- name: Install dependencies
57+
run: |
58+
python -m pip install --upgrade pip
59+
pip install pytest
60+
6761
- name: Run tests
6862
run: |
6963
pytest

0 commit comments

Comments
 (0)