-
Notifications
You must be signed in to change notification settings - Fork 20
46 lines (46 loc) · 1.3 KB
/
tests.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
name: Tests
on: [push]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.7'
architecture: 'x64'
- name: Install PyLint
run: python -m pip install pylint coverage
- name: Lint
run: pylint animation_retarget tests
test:
name: Run
strategy:
matrix:
blender:
- version: '2.83.20'
python: '3.7'
- version: '3.0.1'
python: '3.9'
- version: '3.1.2'
python: '3.10'
coverage: 'coverage'
runs-on: ubuntu-latest
env:
BLENDER_PATH: .blender
BLENDER_VERSION: ${{ matrix.blender.version }}
BLENDER_PYTHON_VERSION: ${{ matrix.blender.python }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ${{ env.BLENDER_PATH }}
key: blender:${{ env.BLENDER_VERSION }}:cov632
- name: Prepare
run: ./tests/ci-prepare.sh
- name: Test
run: ./$BLENDER_PATH/blender --factory-startup -noaudio -b --python-exit-code 1 --python tests/runner.py
- name: Coverage
if: ${{ matrix.blender.coverage == 'coverage' }}
run: bash <(curl -s https://codecov.io/bash)