import_lwo #445
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: import_lwo | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: | |
blender-version: ["3.6", "3.5", "3.4", "3.2", "3.0", "2.82",] | |
#os: [ubuntu-latest, windows-latest, macos-latest] | |
os: [ubuntu-latest, windows-latest] | |
env: | |
BLENDER_CACHE: ${{ github.workspace }}/.blender_releases_cache # The place where blender releases are downloaded | |
BLENDER_VERSION: ${{ matrix.blender-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Git Submodule Update | |
# run: | | |
# #git pull --recurse-submodule | |
# echo -e "machine github.com\n login douglaskastle\n password ${{ secrets.SM_PWD }}" > ~/.netrc | |
# git submodule update --init --recursive | |
# git submodule update --remote | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Cache Blender release download | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.BLENDER_CACHE }} | |
key: ${{ matrix.os }}-blender-${{ matrix.blender-version }} | |
- name: Setup Environment | |
run: | | |
# This testing script will make use of BLENDER_VERSION and BLENDER_CACHE | |
pip install -r blender_requirements.txt | |
pip list | |
- name: flake8 | |
run: | | |
flake8 io_scene_lwo scripts --count --show-source --statistics | |
- name: Test Blender-${{ matrix.blender-version }} - ${{ matrix.os}} | |
run: | | |
python scripts/test_addon.py io_scene_lwo ${{ matrix.blender-version }} |