forked from EpicGamesExt/BlenderTools
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Repo Docs and Tests (#10)
* Refactored Repo Docs and Tests (#10) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: JoshQuake <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
272c8b6
commit 69dd1be
Showing
87 changed files
with
1,475 additions
and
7,727 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
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
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,66 @@ | ||
name: Docs | ||
|
||
on: | ||
# Runs on pushes targeting the main branch | ||
push: | ||
branches: | ||
- "main" | ||
paths: | ||
- "docs/**/*" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Python Dependencies | ||
shell: bash | ||
run: | | ||
python3 -m venv .linux-venv | ||
source .linux-venv/bin/activate | ||
pip install --upgrade -r requirements.txt | ||
- name: Build Mkdocs | ||
shell: bash | ||
run: | | ||
export GA_ID=${{ secrets.GA_ID }} | ||
source .linux-venv/bin/activate | ||
mkdocs build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- name: Upload Built Docs | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: './site' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,75 @@ | ||
name: re-use-tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
title: | ||
required: true | ||
type: string | ||
blender-version: | ||
required: true | ||
type: string | ||
unreal-version: | ||
required: true | ||
type: string | ||
secrets: | ||
GH_USER: | ||
required: true | ||
GH_PAT: | ||
required: true | ||
|
||
jobs: | ||
tests: | ||
name: ${{ inputs.title }} | ||
runs-on: poly-hammer-runner | ||
if: github.repository == 'poly-hammer/BlenderTools' | ||
timeout-minutes: 120 | ||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Python Dependencies | ||
shell: bash | ||
run: | | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
pip install --upgrade -r requirements.txt | ||
- name: Run All Tests | ||
shell: bash | ||
run: | | ||
source .venv/bin/activate | ||
export GITHUB_TOKEN=${{ secrets.GH_PAT }} | ||
export TEST_ENVIRONMENT=1 | ||
export UNREAL_VERSION=${{ inputs.unreal-version }} | ||
export BLENDER_VERSION=${{ inputs.blender-version }} | ||
echo $GITHUB_TOKEN | docker login ghcr.io -u ${{ secrets.GH_USER }} --password-stdin | ||
cd ./tests | ||
python run_tests.py | ||
- name: Publish ${{ inputs.title }} Report | ||
uses: mikepenz/action-junit-report@v4 | ||
# always run even if the previous step fails | ||
if: success() || failure() | ||
with: | ||
check_name: ${{ inputs.title }} Results (Unreal ${{ inputs.unreal-version }} Blender ${{ inputs.blender-version }}) | ||
include_passed: True | ||
fail_on_failure: True | ||
require_tests: True | ||
require_passed_tests: True | ||
detailed_summary: True | ||
report_paths: './tests/results/*.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Create Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
addons: | ||
type: choice | ||
description: Make a choice | ||
default: 'send2ue,ue2rigify' | ||
options: | ||
- 'ue2rigify' | ||
- 'send2ue' | ||
- 'send2ue,ue2rigify' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install Requirements | ||
run: | | ||
pip3 install -r requirements.txt | ||
- name: Create Release | ||
run: | | ||
export REPO=${{ github.repository }} | ||
export GITHUB_TOKEN=${{ secrets.GH_PAT }} | ||
export BLENDER_ADDONS=${{ github.event.inputs.addons }} | ||
python3 scripts/create_release.py |
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,37 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- ci-testing | ||
paths: | ||
- 'send2ue/**/*' | ||
- 'ue2rigify/**/*' | ||
- 'tests/**/*' | ||
- '.github/workflows/**' | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
test-lts: | ||
name: Test LTS | ||
uses: poly-hammer/BlenderTools/.github/workflows/re-use-tests.yml@main | ||
secrets: inherit | ||
with: | ||
title: Test LTS | ||
unreal-version: 5.3 | ||
blender-version: 3.6 | ||
|
||
test-latest: | ||
needs: test-lts | ||
name: Test Latest | ||
uses: poly-hammer/BlenderTools/.github/workflows/re-use-tests.yml@main | ||
secrets: inherit | ||
with: | ||
title: Test Latest | ||
unreal-version: 5.3 | ||
blender-version: 4.1 |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.