-
-
Notifications
You must be signed in to change notification settings - Fork 162
134 lines (131 loc) · 7.73 KB
/
system-tests-pr.yml
File metadata and controls
134 lines (131 loc) · 7.73 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
name: System tests (PR)
on:
pull_request:
types: [labeled]
jobs:
gather-refs:
name: Map Git branches to latest refs
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 '%q\n' "preCICE: ${{ steps.ref-precice.outputs.shorthash }}\n ${{ steps.ref-precice.outputs.description }}\n----------\n"
printf '%q\n' "Python bindings: ${{ steps.ref-python-bindings.outputs.shorthash }}\n ${{ steps.ref-python-bindings.outputs.description }}\n----------\n"
printf '%q\n' "CalculiX adapter: ${{ steps.ref-calculix-adapter.outputs.shorthash }}\n ${{ steps.ref-calculix-adapter.outputs.description }}\n----------\n"
printf '%q\n' "FEniCS adapter: ${{ steps.ref-fenics-adapter.outputs.shorthash }}\n ${{ steps.ref-fenics-adapter.outputs.description }}\n----------\n"
printf '%q\n' "OpenFOAM adapter: ${{ steps.ref-openfoam-adapter.outputs.shorthash }} ${{ steps.ref-openfoam-adapter.outputs.description }}\n----------\n"
printf '%q\n' "SU2 adapter: ${{ steps.ref-su2-adapter.outputs.shorthash }}\n ${{ steps.ref-su2-adapter.outputs.description }}\n----------\n"
- id: summary
name: Prepare Markdown summary
run: |
printf '%q\n' "## Git references of latest (develop) components" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### preCICE" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-precice.outputs.shorthash }}\`](https://github.com/precice/precice/commit/${{ steps.ref-precice.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-precice.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### Python bindings" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-python-bindings.outputs.shorthash }}\`](https://github.com/precice/python-bindings/commit/${{ steps.ref-python-bindings.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-python-bindings.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### CalculiX adapter" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-calculix-adapter.outputs.shorthash }}\`](https://github.com/precice/calculix-adapter/commit/${{ steps.ref-calculix-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-calculix-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### FEniCS adapter" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-fenics-adapter.outputs.shorthash }}\`](https://github.com/precice/fenics-adapter/commit/${{ steps.ref-fenics-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-fenics-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### OpenFOAM adapter" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-openfoam-adapter.outputs.shorthash }}\`](https://github.com/precice/openfoam-adapter/commit/${{ steps.ref-openfoam-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-openfoam-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### SU2 adapter" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference: [\`${{ steps.ref-su2-adapter.outputs.shorthash }}\`](https://github.com/precice/su2-adapter/commit/${{ steps.ref-su2-adapter.outputs.shorthash }})" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Description:" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "${{ steps.ref-su2-adapter.outputs.description }}" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "### Tutorials" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "Reference (pull request): \`${{ github.event.pull_request.head.sha }}\`" >> $GITHUB_STEP_SUMMARY
printf '%q\n' "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:openfoam2312,\
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"