-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
161 changed files
with
144,770 additions
and
39,038 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Extension | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
version: [4.2.5, 4.3.2] | ||
env: | ||
ADDON_NAME: molecularnodes | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: SebRollen/[email protected] | ||
id: read_manifest | ||
with: | ||
file: '${{ env.ADDON_NAME }}/blender_manifest.toml' | ||
field: 'version' | ||
- uses: BradyAJohnston/[email protected] | ||
with: | ||
version: ${{ matrix.version }} | ||
- name: Build extension | ||
run: | | ||
blender -b -P build.py | ||
mkdir artifact | ||
mv ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}-*.zip ./artifact/. | ||
- name: Archive addon | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ADDON_NAME }}-build_${{ matrix.version }}-${{ github.sha }} | ||
retention-days: 3 | ||
path: | | ||
./artifact/* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/molecularnodes | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "latest" | ||
- name: build | ||
run: | | ||
uv build | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test Daily Build | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 4 | ||
fail-fast: false | ||
matrix: | ||
version: ["daily"] | ||
os: [ubuntu-latest, macos-14, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: BradyAJohnston/[email protected] | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,40 @@ | ||
name: test-addon | ||
name: test-in-blender | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main", "4.1"] | ||
|
||
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: | ||
blender-version: ["4.1.0"] | ||
python-version: ['3.11.7'] | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
# - run: pip install bpy==${{ matrix.blender-version }} | ||
- name: Install | ||
run: | | ||
pip install poetry | ||
poetry install --with=dev | ||
- name: Install pyopenvdb | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd $(poetry run python -c "import os; import bpy; print(os.path.dirname(bpy.__file__)+'/../../../../../')") | ||
svn export https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_x86_64_glibc_228/python/lib/python3.10/site-packages/pyopenvdb.so@r63589 | ||
pip install patchelf | ||
patchelf --set-rpath '$ORIGIN/bpy/lib' pyopenvdb.so | ||
- name: Run Tests | ||
run: poetry run python -m pytest --verbose --cov=molecularnodes --cov-report=xml:coverage.xml --ignore=molecularnodes/ui/panel.py -k "not star" | ||
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/[email protected] | ||
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: Expose coverage as a CI download # Related to test_addon_blender_advanced.py | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: coverage.xml | ||
path: coverage.xml | ||
# setup ssh to check on file system state | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
- name: Upload coverage reports to Codecov | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: codecov/codecov-action@v3 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11 |
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
Oops, something went wrong.