Python API docs #734
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-in-blender | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main", "4.2", "4.3"] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
fail-fast: false | |
matrix: | |
version: ["4.2.5", "4.3.2", "daily"] | |
os: [ubuntu-latest, macos-14, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: BradyAJohnston/setup-blender@v2.1 | |
with: | |
version: ${{ matrix.version }} | |
- name: Install in Blender | |
run: | | |
blender -b -P tests/python.py -- -m pip install ".[test]" | |
- name: Run Tests | |
run: | | |
blender -b -P tests/run.py -- -vv tests --cov --cov-report=xml | |
- name: Expose coverage as a CI download | |
uses: actions/upload-artifact@v4 | |
if: matrix.os == 'ubuntu-latest' && matrix.version == '4.2.5' | |
with: | |
name: coverage.xml | |
path: coverage.xml | |
- name: Upload coverage reports to Codecov | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/codecov-action@v3 | |