-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Valentin Seitz <[email protected]>
- Loading branch information
1 parent
6023dbd
commit fddebee
Showing
12 changed files
with
175 additions
and
99 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,36 @@ | ||
name: Run Testsuite (manual) # Unfortunately, we cannot modify the name: https://github.community/t/github-actions-dynamic-name-of-the-workflow-with-workflow-dispatch/150327 | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
suites: | ||
description: 'Comma seperated testsuites to execute' | ||
required: true | ||
type: string | ||
build_args: | ||
description: 'Build arguments, if not specified defaults will be taken' | ||
required: false | ||
type: string | ||
systests_branch: | ||
description: 'Branch to take the systest from' | ||
default: 'develop' | ||
required: true | ||
type: string | ||
loglevel: | ||
description: 'loglevel used for the systemtests' | ||
default: 'INFO' | ||
required: true | ||
type: choice | ||
options: | ||
- 'DEBUG' | ||
- 'INFO' | ||
- 'WARNING' | ||
- 'ERROR' | ||
- 'CRITICAL' | ||
jobs: | ||
run_testsuite_manual: | ||
uses: ./.github/workflows/run_testsuite_workflow.yml | ||
with: | ||
suites: ${{ inputs.suites }} | ||
build_args: ${{ inputs.build_args }} | ||
systests_branch: ${{ inputs.systests_branch }} | ||
loglevel: ${{ inputs.loglevel }} |
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,63 @@ | ||
name: Run Testsuite Workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
suites: | ||
description: 'Comma seperated testsuites to execute' | ||
required: true | ||
type: string | ||
build_args: | ||
description: 'Build arguments' | ||
required: false | ||
type: string | ||
systests_branch: | ||
description: 'Branch to take the systest from' | ||
default: 'develop' | ||
required: true | ||
type: string | ||
loglevel: | ||
description: 'loglevel used for the systemtests' | ||
default: 'INFO' | ||
required: false | ||
type: string | ||
jobs: | ||
run_testsuite: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Report log | ||
run: | | ||
echo "Initiated by: ${{ github.actor }}" | ||
echo "Running systemtests --build_args=${{github.event.inputs.build_args}} --suites=${{github.event.inputs.suites}}" | ||
echo "Systemtests branch: ${{ github.event.inputs.systests_branch }}" | ||
- name: Check out Tutorials for systest | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.systests_branch }} | ||
lfs: true | ||
fetch-depth: 0 | ||
- name: Log directory | ||
run: | | ||
ls -al | ||
pwd | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: install python depencies | ||
run: | | ||
python -m pip install -r ./tools/tests/requirements.txt | ||
- name: Expose GitHub Runtime (needed for accessing the gha cache) | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
- name: Run tests | ||
run: | | ||
cd ./tools/tests | ||
python systemtests.py --build_args=${{github.event.inputs.build_args}} --suites=${{github.event.inputs.suites}} --log-level=${{github.event.inputs.loglevel}} | ||
cd ../../ | ||
- name: Archive run files | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: runs | ||
path: | | ||
runs/* |
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
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
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