-
-
Notifications
You must be signed in to change notification settings - Fork 167
36 lines (29 loc) · 1.06 KB
/
Copy pathtest.yaml
File metadata and controls
36 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: test
on:
workflow_dispatch:
pull_request:
branches: [main]
jobs:
test-extension:
runs-on: ubuntu-latest
steps:
- uses: moguri/setup-blender@v1
with:
blender-version: "4.5"
- run: blender --version
- name: Checkout Addon
uses: actions/checkout@v4
with:
path: CAD_Sketcher
- name: Validate Extension
run: blender --background --command extension validate
working-directory: ./CAD_Sketcher
- name: Build Extension
run: blender --background --command extension build --output-filepath ./CAD_Sketcher.zip
working-directory: ./CAD_Sketcher
- name: Install Extension
run: blender --background --command extension install-file --repo user_default --enable ./CAD_Sketcher.zip
working-directory: ./CAD_Sketcher
- name: Run Tests
run: blender --background --addons CAD_Sketcher --python-expr "import bpy; bpy.context.preferences.view.show_splash=False; bpy.ops.view3d.slvs_test()"
working-directory: ./CAD_Sketcher