-
-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (51 loc) · 2.06 KB
/
gmic-blender-addon-test.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
name: gmic-blender-testing
on:
push:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
blender-version: ["2.80", "2.81a", "2.82a", "2.83.0", "2.90.0"]
os: [ubuntu-latest, macos-latest] #, windows-latest]
env:
BLENDER_CACHE: ${{ github.workspace }}/.blender_releases_cache # The place where blender releases are downloaded
BLENDER_VERSION: ${{ matrix.blender-version }}
GMICPY_DOWNLOADS_CACHE: ${{ github.workspace }}/.gmicpy_wheels_cache # The place where blender releases are downloaded
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install python requirements and set latest gmic-py version into env
run: |
pip install -r make_addon_requirements.txt
echo ::set-env name=GMICPYVERSION::$(python get_latest_gmicpy_version.py)
- name: Cache Gmic Python ${{ env.GMICPYVERSION }} all-platforms wheels download
uses: actions/cache@v1
with:
path: ${{ env.GMICPY_DOWNLOADS_CACHE }}
key: gmic-py-${{ env.GMICPYVERSION }}
- name: Cache ${{ matrix.os }} Blender ${{ matrix.blender-version }} release download
uses: actions/cache@v1
with:
path: ${{ env.BLENDER_CACHE }}
key: ${{ matrix.os }}-blender-${{ matrix.blender-version }}
- name: Install MacOSX fftw and libomp with Homebrew
if: matrix.os == 'macos-latest'
run: |
brew install fftw libomp
- name: Grab Blender ${{ matrix.blender-version }}, build gmic-blender ${{ env.GMICPYVERSION }} and test them with pytest
run: |
python make_addon_zip.py
pip install -r blender_addon_tester_requirements.txt
python test_gmic_blender_addon.py # Uses the BLENDER_VERSION environment variable
- name: Expose coverage as a CI download
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}-blender-${{ matrix.blender-version }}-coverage.xml
path: coverage.xml