Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/system-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: System tests

on:
pull_request:
types: [labeled]

jobs:
gather-refs:
if: ${{ github.event.label.name == 'trigger-system-tests' }}
runs-on: ubuntu-latest
outputs:
ref-tutorials: ${{ steps.ref-tutorials.outputs.shorthash }}
steps:
- id: ref-tutorials
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: tutorials
branch: develop
- id: report-refs
name: Report Git refs
run: |
printf 'Tutorials: ${{ steps.ref-tutorials.outputs.shorthash }}\n ${{ steps.ref-tutorials.outputs.description }}\n----------\n'
- id: summary
name: Prepare Markdown summary
run: |
echo "### Micro-Manager" >> $GITHUB_STEP_SUMMARY
echo "Reference (pull request): \`${{ github.event.pull_request.head.sha }}\`" >> $GITHUB_STEP_SUMMARY
echo "Pull request number: [${{ github.event.number }}](https://github.com/precice/micro-manager/pull/${{ github.event.number }})" >> $GITHUB_STEP_SUMMARY
echo "### DuMux adapter" >> $GITHUB_STEP_SUMMARY
echo "Using v3.0.0 (pinned)" >> $GITHUB_STEP_SUMMARY
echo "### Tutorials" >> $GITHUB_STEP_SUMMARY
echo "Reference (develop): [\`${{ steps.ref-tutorials.outputs.shorthash }}\`](https://github.com/precice/tutorials/commit/${{ steps.ref-tutorials.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-tutorials.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY

run-system-tests:
if: ${{ github.event.label.name == 'trigger-system-tests' }}
needs: gather-refs
uses: precice/tutorials/.github/workflows/run_testsuite_workflow.yml@develop
with:
suites: micro_manager_test
build_args: TUTORIALS_REF:${{ needs.gather-refs.outputs.ref-tutorials }},MICRO_MANAGER_PR:${{ github.event.number }},MICRO_MANAGER_REF:${{ github.event.pull_request.head.sha }},DUMUX_ADAPTER_REF:v3.0.0
system_tests_branch: develop
log_level: "DEBUG"
Loading