-
-
Notifications
You must be signed in to change notification settings - Fork 113
98 lines (83 loc) · 2.83 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
# yamllint disable rule:line-length
name: Screencast-Keys CI
on: # yamllint disable-line rule:truthy
push:
branches:
- master
- 'release/v**'
- 'run-ci/**'
tags:
- 'v*'
pull_request:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"
jobs:
test-addon-blender-before-v41:
name: Test add-on
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
blender_version:
[
"2.80", "2.81", "2.82", "2.83",
"2.90", "2.91", "2.92", "2.93",
"3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6",
"4.0", "4.1",
]
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 ${{ matrix.blender_version }} blender-bin
- name: Copy add-on to Blender add-on's directory
run: cp -r src/screencast_keys blender-bin/blender-v${{ matrix.blender_version }}-bin/${{ matrix.blender_version }}/scripts/addons
- name: Run add-on unittest
run: blender-bin/blender-v${{ matrix.blender_version }}-bin/blender --factory-startup --background -noaudio --python tests/python/run_tests.py
env:
SK_CONSOLE_MODE: true
test-addon-blender-after-v42:
name: Test add-on
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
blender_version:
[
"4.2",
]
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 ${{ matrix.blender_version }} blender-bin
- name: Copy add-on to Blender add-on's directory
run: |
mkdir -p ~/.config/blender/${{ matrix.blender_version }}/extensions/user_default
cp -r src/screencast_keys ~/.config/blender/${{ matrix.blender_version }}/extensions/user_default
- name: Run add-on unittest
run: blender-bin/blender-v${{ matrix.blender_version }}-bin/blender --factory-startup --background -noaudio --python tests/python/run_tests.py
env:
SK_CONSOLE_MODE: true