-
Notifications
You must be signed in to change notification settings - Fork 83
45 lines (40 loc) · 1.17 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
name: test-addon
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
fail-fast: false
matrix:
blender-version: ["3.5.0"]
os: [ubuntu-latest, windows-latest]
# os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
cache: 'pip'
# - run: pip install bpy==${{ matrix.blender-version }}
# - run: pip install -r requirements.txt
- name: Install MolecularNodes + Dependencies
run: pip install .
# - name: Install MolecularNodes
# run: pip install .
- name: Run Tests
run: pytest --verbose --cov=MolecularNodes --cov-report=xml:coverage.xml
- name: Expose coverage as a CI download # Related to test_addon_blender_advanced.py
uses: actions/upload-artifact@v1
with:
name: coverage.xml
path: coverage.xml
# setup ssh to check on file system state
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3