Skip to content

Commit

Permalink
Add upstream testing (#23)
Browse files Browse the repository at this point in the history
* Create test-upstream.yml

* cleanup test file
  • Loading branch information
BradyAJohnston authored Feb 27, 2025
1 parent c1a3440 commit 1d3e5a6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/test-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test Upstream

on:
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ${{ matrix.os }}
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REPO_NAME: "BradyAJohnston/databpy"
strategy:
max-parallel: 4
fail-fast: false
matrix:
version: ["4.2", "4.3"]
os: [ubuntu-latest]
repo: ["BradyAJohnston/MolecularNodes"]
steps:
- uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}

- uses: BradyAJohnston/setup-blender@v3
with:
version: ${{ matrix.version }}

- name: Install and Test
run: |
blender -b -P tests/python.py -- -m pip install -e ".[test]"
blender -b -P tests/python.py -- -m pip install git+https://github.com/${{ env.REPO_NAME}}.git@${{ env.BRANCH_NAME }}
blender -b -P tests/run.py -- -vv
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "databpy"
version = "0.0.13"
version = "0.0.15"
description = "A data-oriented wrapper library for the Blender Python API"
readme = "README.md"
dependencies = ["numpy>=1.24.0,<2.0"]
Expand Down

0 comments on commit 1d3e5a6

Please sign in to comment.