-
-
Notifications
You must be signed in to change notification settings - Fork 165
182 lines (179 loc) · 9.14 KB
/
Copy pathsystem-tests-pr.yml
File metadata and controls
182 lines (179 loc) · 9.14 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
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-dumux-adapter: ${{ steps.ref-dumux-adapter.outputs.shorthash }}
ref-fenics-adapter: ${{ steps.ref-fenics-adapter.outputs.shorthash }}
ref-fenicsx-adapter: ${{ steps.ref-fenicsx-adapter.outputs.shorthash }}
ref-micro-manager: ${{ steps.ref-micro-manager.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-dumux-adapter
name: Get DuMux adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: dumux-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-fenicsx-adapter
name: Get FEniCSx adapter ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: fenicsx-adapter
branch: develop
- id: ref-micro-manager
name: Get Micro-Manager ref
uses: nmbgeek/github-action-get-latest-commit@main
with:
owner: precice
repo: micro-manager
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 'DuMux adapter: ${{ steps.ref-dumux-adapter.outputs.shorthash }}\n ${{ steps.ref-dumux-adapter.outputs.description }}\n----------\n'
printf 'FEniCS adapter: ${{ steps.ref-fenics-adapter.outputs.shorthash }}\n ${{ steps.ref-fenics-adapter.outputs.description }}\n----------\n'
printf 'FEniCSx adapter: ${{ steps.ref-fenicsx-adapter.outputs.shorthash }}\n ${{ steps.ref-fenicsx-adapter.outputs.description }}\n----------\n'
printf 'Micro-Manager: ${{ steps.ref-micro-manager.outputs.shorthash }}\n ${{ steps.ref-micro-manager.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"
echo "### preCICE"
echo "Reference: [\`${{ steps.ref-precice.outputs.shorthash }}\`](https://github.com/precice/precice/commit/${{ steps.ref-precice.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-precice.outputs.description }}"
echo "\`\`\`"
echo "### Python bindings"
echo "Reference: [\`${{ steps.ref-python-bindings.outputs.shorthash }}\`](https://github.com/precice/python-bindings/commit/${{ steps.ref-python-bindings.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-python-bindings.outputs.description }}"
echo "\`\`\`"
echo "### CalculiX adapter"
echo "Reference: [\`${{ steps.ref-calculix-adapter.outputs.shorthash }}\`](https://github.com/precice/calculix-adapter/commit/${{ steps.ref-calculix-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-calculix-adapter.outputs.description }}"
echo "\`\`\`"
echo "### DuMux adapter"
echo "Reference: [\`${{ steps.ref-dumux-adapter.outputs.shorthash }}\`](https://github.com/precice/dumux-adapter/commit/${{ steps.ref-dumux-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-dumux-adapter.outputs.description }}"
echo "\`\`\`"
echo "### FEniCS adapter"
echo "Reference: [\`${{ steps.ref-fenics-adapter.outputs.shorthash }}\`](https://github.com/precice/fenics-adapter/commit/${{ steps.ref-fenics-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-fenics-adapter.outputs.description }}"
echo "\`\`\`"
echo "### FEniCSx adapter"
echo "Reference: [\`${{ steps.ref-fenicsx-adapter.outputs.shorthash }}\`](https://github.com/precice/fenicsx-adapter/commit/${{ steps.ref-fenicsx-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-fenicsx-adapter.outputs.description }}"
echo "\`\`\`"
echo "### Micro-Manager"
echo "Reference: [\`${{ steps.ref-micro-manager.outputs.shorthash }}\`](https://github.com/precice/micro-manager/commit/${{ steps.ref-micro-manager.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-micro-manager.outputs.description }}"
echo "\`\`\`"
echo "### OpenFOAM adapter"
echo "Reference: [\`${{ steps.ref-openfoam-adapter.outputs.shorthash }}\`](https://github.com/precice/openfoam-adapter/commit/${{ steps.ref-openfoam-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-openfoam-adapter.outputs.description }}"
echo "\`\`\`"
echo "### SU2 adapter"
echo "Reference: [\`${{ steps.ref-su2-adapter.outputs.shorthash }}\`](https://github.com/precice/su2-adapter/commit/${{ steps.ref-su2-adapter.outputs.shorthash }})"
echo "Description:"
echo "\`\`\`"
echo "${{ steps.ref-su2-adapter.outputs.description }}"
echo "\`\`\`"
echo "### Tutorials"
echo "Reference (pull request): \`${{ github.event.pull_request.head.sha }}\`"
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
build_args: "PLATFORM:ubuntu_2404,\
PRECICE_REF:${{ needs.gather-refs.outputs.ref-precice }},\
PYTHON_BINDINGS_REF:${{ needs.gather-refs.outputs.ref-python-bindings }},\
CALCULIX_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-calculix-adapter }},\
DUMUX_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-dumux-adapter }},\
FENICS_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-fenics-adapter }},\
FENICSX_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-fenicsx-adapter }},\
MICRO_MANAGER_REF:${{ needs.gather-refs.outputs.ref-micro-manager }},\
OPENFOAM_ADAPTER_REF:${{ needs.gather-refs.outputs.ref-openfoam-adapter }},\
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"