-
-
Notifications
You must be signed in to change notification settings - Fork 113
43 lines (35 loc) · 1.07 KB
/
ci.yml
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
37
38
39
40
41
42
43
name: Screencast-Keys CI
on:
push:
branches:
- master
- 'run-ci/**'
tags:
- 'v*'
pull_request:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
build:
name: Test add-on
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Get required packages for Blender
run: |
sudo apt-get update -qq
sudo apt-get install -y blender wget python3 python3-pip zip
- name: Get required pip packages
run: pip3 install -r requirements.txt
- name: Download Blender
run: bash tools/download_blender.sh 2.83 blender-bin
- name: Copy add-on to Blender add-on's directory
run: cp -r src/screencast_keys blender-bin/blender-v2.83-bin/2.83/scripts/addons
- name: Run add-on unittest
run: blender-bin/blender-v2.83-bin/blender --factory-startup --background -noaudio # --python tests/python/run_tests.py