-
Notifications
You must be signed in to change notification settings - Fork 26
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
3 changed files
with
113 additions
and
61 deletions.
There are no files selected for viewing
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,76 @@ | ||
name: Build and Run Tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
|
||
jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Build Addon | ||
# run: python dev/build.py --version 3.0.0 --addon_package data_vis | ||
# - name: ZIP Artifact | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: data_vis_zip | ||
# path: data_vis_3.0.0.zip | ||
|
||
# render_charts: | ||
# runs-on: ubuntu-latest | ||
# needs: build | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Cache Blender | ||
# id: blender_4_2_binary | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: /home/runner/blender | ||
# key: blender-4.2 | ||
# - name: Download Blender | ||
# if: steps.blenderBinaryCache.outputs.cache-hit != 'true' | ||
# run: curl https://download.blender.org/release/Blender4.2/blender-4.2.5-linux-x64.tar.xz -o /home/runner/blender.tar.xz | ||
# - name: Mkdir | ||
# run: mkdir {/home/runner/.local/bin,/home/runner/blender} -p | ||
# - name: Extract Blender | ||
# if: steps.blenderBinaryCache.outputs.cache-hit != 'true' | ||
# run: tar -xf /home/runner/blender.tar.xz -C /home/runner/blender --strip-components=1 | ||
# - name: Add Blender to PATH | ||
# run: ln -s /home/runner/blender/blender /home/runner/.local/bin/blender | ||
# - name: Download Addon ZIP | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: data_vis_zip | ||
# - name: Install Blender Dependencies | ||
# run: sudo apt-get install freeglut3-dev | ||
# - name: Install pip dependencies | ||
# if: steps.blenderBinaryCache.outputs.cache-hit != 'true' | ||
# run: /home/runner/blender/4.2/python/bin/python3.11 -m pip install scipy | ||
# - name: Render Charts | ||
# run: python dev/run_in_blender.py --script_path dev/tests/render_charts.py -- data_vis_3.0.0.zip dev/tests/data/ dev/tests/out | ||
# - name: Upload Results | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: render_charts_output | ||
# path: dev/tests/out | ||
|
||
comment_on_pr: | ||
runs-on: ubuntu-latest | ||
# needs: render_charts | ||
steps: | ||
# - name: Download Rendered Charts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: render_charts_output | ||
- name: Comment on PR | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
await github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '👋 Thanks for reporting!' | ||
}) |
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