-
-
Notifications
You must be signed in to change notification settings - Fork 162
135 lines (132 loc) · 7.39 KB
/
system-tests-pr.yml
File metadata and controls
135 lines (132 loc) · 7.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: System tests (PR)
on:
pull_request:
types: [labeled]
jobs:
gather-refs:
name: Map Git branches to latest refs
if: github.event.label.name == 'trigger-system-tests'
runs-on: ubuntu-latest
outputs:
ref-precice: ${{ steps.ref-precice.outputs.shorthash }}
ref-python-bindings: ${{ steps.ref-python-bindings.outputs.shorthash }}
ref-calculix-adapter: ${{ steps.ref-calculix-adapter.outputs.shorthash }}
ref-fenics-adapter: ${{ steps.ref-fenics-adapter.outputs.shorthash }}
ref-openfoam-adapter: ${{ steps.ref-openfoam-adapter.outputs.shorthash }}
ref-su2-adapter: ${{ steps.ref-su2-adapter.outputs.shorthash }}
steps:
- id: ref-precice
name: Get preCICE ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: precice
branch: develop
- id: ref-python-bindings
name: Get Python bindings ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: python-bindings
branch: develop
- id: ref-calculix-adapter
name: Get CalculiX adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: calculix-adapter
branch: develop
- id: ref-fenics-adapter
name: Get FEniCS adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: fenics-adapter
branch: develop
- id: ref-openfoam-adapter
name: Get OpenFOAM adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: openfoam-adapter
branch: develop
- id: ref-su2-adapter
name: Get SU2 adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: su2-adapter
branch: develop
- id: report-refs
name: Report Git refs
run: |
printf 'preCICE: ${{ steps.ref-precice.outputs.shorthash }}\n ${{ steps.ref-precice.outputs.description }}\n----------\n'
printf 'Python bindings: ${{ steps.ref-python-bindings.outputs.shorthash }}\n ${{ steps.ref-python-bindings.outputs.description }}\n----------\n'
printf 'CalculiX adapter: ${{ steps.ref-calculix-adapter.outputs.shorthash }}\n ${{ steps.ref-calculix-adapter.outputs.description }}\n----------\n'
printf 'FEniCS adapter: ${{ steps.ref-fenics-adapter.outputs.shorthash }}\n ${{ steps.ref-fenics-adapter.outputs.description }}\n----------\n'
printf 'OpenFOAM adapter: ${{ steps.ref-openfoam-adapter.outputs.shorthash }} ${{ steps.ref-openfoam-adapter.outputs.description }}\n----------\n'
printf 'SU2 adapter: ${{ steps.ref-su2-adapter.outputs.shorthash }}\n ${{ steps.ref-su2-adapter.outputs.description }}\n----------\n'
- id: summary
name: Prepare Markdown summary
run: |
echo "## Git references of latest (develop) components" >> $GITHUB_STEP_SUMMARY
echo "### preCICE" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-precice.outputs.shorthash }}\`](https://github.com/precice/precice/commit/${{ steps.ref-precice.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-precice.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Python bindings" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-python-bindings.outputs.shorthash }}\`](https://github.com/precice/python-bindings/commit/${{ steps.ref-python-bindings.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-python-bindings.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### CalculiX adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-calculix-adapter.outputs.shorthash }}\`](https://github.com/precice/calculix-adapter/commit/${{ steps.ref-calculix-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-calculix-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### FEniCS adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-fenics-adapter.outputs.shorthash }}\`](https://github.com/precice/fenics-adapter/commit/${{ steps.ref-fenics-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-fenics-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### OpenFOAM adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-openfoam-adapter.outputs.shorthash }}\`](https://github.com/precice/openfoam-adapter/commit/${{ steps.ref-openfoam-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-openfoam-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### SU2 adapter" >> $GITHUB_STEP_SUMMARY
echo "Reference: [\`${{ steps.ref-su2-adapter.outputs.shorthash }}\`](https://github.com/precice/su2-adapter/commit/${{ steps.ref-su2-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
echo "Description:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.ref-su2-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Tutorials" >> $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/tutorials/pull/${{ github.event.number }})" >> $GITHUB_STEP_SUMMARY
run-system-tests:
name: Trigger 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: release_test
build_args: "PLATFORM:ubuntu_2404,\
PRECICE_REF:${{ needs.gather-refs.outputs.ref-precice }},\
PYTHON_BINDINGS_REF:${{ needs.gather-refs.outputs.ref-python-bindings }},\
CALCULIX_VERSION:2.20,\
CALCULIX_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-calculix-adapter }},\
FENICS_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-fenics-adapter }},\
OPENFOAM_EXECUTABLE:openfoam2512,\
OPENFOAM_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-openfoam-adapter }},\
SU2_VERSION:7.5.1,\
SU2_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-su2-adapter }},\
TUTORIALS_PR:${{ github.event.number }},\
TUTORIALS_REF:${{ github.event.pull_request.head.sha }}"
system_tests_branch: develop
log_level: "INFO"