install blender #8
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: Run tests | ||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
push: | ||
branches: [ main ] | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
run-tests: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
# version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | ||
version: ['3.12'] | ||
blender: ['4.2'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.version }} | ||
- name: Install poetry | ||
uses: abatilo/actions-poetry@v2 | ||
- name: "Generate cache key" | ||
id: cache-blender | ||
uses: actions/cache@v3 | ||
with: | ||
path: blender | ||
key: ${{ runner.os }}-blender-${{ matrix.blender }} | ||
- name: "Install Blender" | ||
if: steps.cache-blender.outputs.cache-hit != 'true': | ||
run: | | ||
wget https://download.blender.org/release/Blender${{ matrix.blender }}/blender-{{ matrix.blender }}.0-linux-x64.tar.xz | ||
mkdir blender | ||
tar -xf blender-{{ matrix.blender }}.0-linux-x64.tar.xz -C blender --strip-components=1 | ||
- name: "test" | ||
run: | | ||
blender/blender --version | ||
# - name: Setup a local virtual environment | ||
# run: | | ||
# poetry config virtualenvs.create true --local | ||
# poetry config virtualenvs.in-project true --local | ||
# - uses: actions/cache@v3 | ||
# name: Define a cache for the virtual environment based on the dependencies lock file | ||
# with: | ||
# path: ./.venv | ||
# key: venv-${{ hashFiles('poetry.lock') }} | ||
# - name: Install the project dependencies | ||
# run: poetry install | ||
# - name: Run the automated tests | ||
# run: poetry run pytest -m "not integration" -v |