Skip to content

Commit 0b1c8b2

Browse files
committed
use blender command to install addon
1 parent 430f695 commit 0b1c8b2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
uses: actions/setup-python@v5
3030
with:
3131
python-version: "3.10"
32-
cache: "pip"
3332
- name: Install dependencies
3433
run: |
3534
python -m pip install --upgrade pip
@@ -56,7 +55,10 @@ jobs:
5655
uses: actions/download-artifact@v4
5756
with:
5857
name: blender_servo_animation_addon.zip
59-
- name: Install add-on and dependencies
58+
- name: Install add-on
59+
run: |
60+
blender --command extension install-file -r user_default -e blender_servo_animation_addon.zip
61+
- name: Install test dependencies inside Blender
6062
run: |
6163
./tests/prepare.sh
6264
- name: Run tests inside Blender

tests/prepare.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ def install_dependencies():
2525

2626
subprocess.run([python, "-m", "pip", "install", "-r", req_file], check=True)
2727

28-
def install_addon():
29-
bpy.ops.preferences.addon_install(filepath="blender_servo_animation_addon.zip", overwrite=True)
30-
bpy.ops.preferences.addon_enable(module="servo_animation")
31-
3228
if __name__ == "__main__":
3329
ensure_pip()
34-
install_addon()
3530
install_dependencies()

0 commit comments

Comments
 (0)