Merge branch 'release/2.0.0' #117
Workflow file for this run
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: Continuous Integration | |
on: [push] | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
container: linuxserver/blender:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build add-on | |
run: | | |
cp -R addon servo_animation | |
cp README.md LICENSE servo_animation | |
./scripts/build.sh | |
- name: Archive add-on ZIP | |
uses: actions/upload-artifact@v4 | |
with: | |
name: blender_servo_animation_addon.zip | |
path: | | |
blender_servo_animation_addon.zip | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
- name: Analysing the code with pylint | |
run: | | |
pylint addon | |
pylint -d duplicate-code tests | |
test: | |
name: "Test" | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "4.2.0" | |
- "4.3.0" | |
- "4.3.2" | |
runs-on: ubuntu-latest | |
container: linuxserver/blender:${{ matrix.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download add-on | |
uses: actions/download-artifact@v4 | |
with: | |
name: blender_servo_animation_addon.zip | |
- name: Install add-on | |
run: | | |
./scripts/install.sh | |
- name: Install test dependencies inside Blender | |
run: | | |
./scripts/prepare.sh | |
- name: Run tests inside Blender | |
run: | | |
./scripts/test.sh |