Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Moguri committed Mar 22, 2024
1 parent e7f86b2 commit 18e39e3
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,40 @@ on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
blender: [latest, 3.6lts, 3.3lts, 2.93lts, 2.83lts]
blender: [latest]
os: [ubuntu-latest]
pyversion: ['3.8']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Blender
run: |
sudo apt-get install -y libglu1-mesa
sudo snap install blender --channel=${{ matrix.blender }}/stable --classic
python-version: ${{ matrix.pyversion }}
cache: pip
- uses: Moguri/setup-blender@9a86d901000390c626a911b644b4e69aa7c87558
id: setup-blender
with:
blender-version: ${{ matrix.blender }}
- name: Run Tests
env:
BLENDER_VERSION: ${{ steps.setup-blender.outputs.blender-version }}
BLENDER_PATH: ${{ steps.setup-blender.outputs.blender-path }}
run: |
echo $BLENDER_VERSION
echo $BLENDER_PATH
ls $BLENDER_PATH
$BLENDER_PATH/blender --version
blender --version
python -m pip install -e .[test]
python -m pytest
build_publish:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Build package
Expand Down

0 comments on commit 18e39e3

Please sign in to comment.