version 2.0.0 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ["4.2.0"] | |
os: [ubuntu-latest, windows-latest, macos-13] | |
# os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11.6' | |
cache: 'pip' | |
# - run: pip install bpy==${{ matrix.blender-version }} | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install | |
run: poetry install --with=dev | |
- name: install | |
run: pip install -r requirements.txt | |
- name: Install tif_loader | |
run: pip install . | |
# - name: Install pyopenvdb | |
# if: matrix.os == 'ubuntu-latest' | |
# run: | |
# conda install openvdb | |
# # run: | | |
# cd $(poetry run python -c "import os; import bpy; print(os.path.dirname(bpy.__file__)+'/../../../../../')") | |
# ORIGIN=`pwd` | |
# svn export https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_x86_64_glibc_228/python/lib/python3.10/site-packages/pyopenvdb.so@r63589 | |
# pip install patchelf | |
# patchelf --set-rpath '$ORIGIN/bpy/lib' pyopenvdb.so | |
# echo $? | |
# ls $ORIGIN/bpy/lib | |
# echo "" | |
# ls $ORIGIN/bpy | |
# echo "" | |
# ls $ORIGIN | |
- name: Run Tests | |
run: pytest --verbose |