2
2
3
3
on :
4
4
pull_request :
5
- types : [opened, synchronize, reopened, ready_for_review, closed, labeled ]
5
+ types : [opened, synchronize, reopened, ready_for_review]
6
6
branches-ignore :
7
7
- ' *no-ci*'
8
8
push :
31
31
jobs :
32
32
debug :
33
33
runs-on : ubuntu-latest
34
- if : github.event.action != 'closed'
35
34
steps :
36
- - name : Show the Github context for the triggered event
35
+ - name : Show the GitHub context for the triggered event
37
36
run : echo "$GITHUB_CONTEXT"
38
37
env :
39
38
GITHUB_CONTEXT : ${{ toJson(github) }}
40
39
41
40
pick_server_suffix :
42
41
runs-on : ubuntu-latest
43
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
44
42
outputs :
45
43
suffix : ${{ steps.step1.outputs.suffix }}
46
44
steps :
71
69
style :
72
70
name : " Style Check"
73
71
runs-on : ubuntu-latest
74
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
75
72
steps :
76
73
- uses : ansys/actions/code-style@v8
77
74
with :
80
77
build_linux1 :
81
78
name : " Build linux1 wheel"
82
79
runs-on : ubuntu-latest
83
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
84
80
steps :
85
81
- uses : actions/checkout@v4
86
82
@@ -111,7 +107,6 @@ jobs:
111
107
matrix :
112
108
test-any : ['false', 'true']
113
109
uses : ./.github/workflows/tests.yml
114
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
115
110
needs : pick_server_suffix
116
111
with :
117
112
ANSYS_VERSION : ${{ inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
@@ -126,7 +121,6 @@ jobs:
126
121
docker_tests :
127
122
name : " Build and Test on Docker"
128
123
uses : ./.github/workflows/test_docker.yml
129
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
130
124
needs : pick_server_suffix
131
125
with :
132
126
ANSYS_VERSION : ${{ inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
@@ -136,7 +130,6 @@ jobs:
136
130
docker_examples :
137
131
name : " Run examples on Docker"
138
132
uses : ./.github/workflows/examples_docker.yml
139
- if : github.event.action != 'closed' && (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc')
140
133
needs : pick_server_suffix
141
134
with :
142
135
ANSYS_VERSION : ${{ inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
@@ -146,8 +139,6 @@ jobs:
146
139
147
140
docs :
148
141
if : |
149
- github.event.action != 'closed' &&
150
- (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc') &&
151
142
(startsWith(github.head_ref, 'main') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft)
152
143
uses : ./.github/workflows/docs.yml
153
144
needs : pick_server_suffix
@@ -158,31 +149,9 @@ jobs:
158
149
python_version : " 3.11"
159
150
secrets : inherit
160
151
161
- doc-deploy-pr :
162
- name : " Deploy PR documentation"
163
- runs-on : ubuntu-latest
164
- needs : docs
165
- if : |
166
- always() &&
167
- github.event.pull_request.draft != true &&
168
- (needs.docs.result == 'success' || needs.docs.result == 'skipped') &&
169
- contains(github.event.pull_request.labels.*.name, 'deploy-pr-doc')
170
- steps :
171
- - uses : ansys/actions/doc-deploy-pr@v10
172
- with :
173
- cname : ${{ env.DOCUMENTATION_CNAME }}
174
- token : ${{ secrets.GITHUB_TOKEN }}
175
- doc-artifact-name : HTML-doc-ansys-dpf-core.zip
176
- decompress-artifact : true
177
- bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
178
- bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
179
- maximum-pr-doc-deployments : 10
180
-
181
152
upload-development-docs :
182
153
runs-on : ubuntu-latest
183
154
if : |
184
- github.event.action != 'closed' &&
185
- (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc') &&
186
155
(github.ref == 'refs/heads/main' && github.event_name == 'push')
187
156
needs : [docs]
188
157
steps :
@@ -198,8 +167,6 @@ jobs:
198
167
199
168
examples :
200
169
if : |
201
- github.event.action != 'closed' &&
202
- (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc') &&
203
170
(startsWith(github.head_ref, 'main') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft)
204
171
uses : ./.github/workflows/examples.yml
205
172
needs : pick_server_suffix
@@ -212,8 +179,6 @@ jobs:
212
179
pydpf-post :
213
180
name : " PyDPF-Post"
214
181
if : |
215
- github.event.action != 'closed' &&
216
- (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc') &&
217
182
(startsWith(github.head_ref, 'main') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft)
218
183
uses : ./.github/workflows/pydpf-post.yml
219
184
needs : pick_server_suffix
@@ -227,8 +192,6 @@ jobs:
227
192
tests-retro :
228
193
name : " Test DPF ${{ matrix.version }} compatibility"
229
194
if : |
230
- github.event.action != 'closed' &&
231
- (github.event.action != 'labeled' || github.event.label.name == 'deploy-pr-doc') &&
232
195
(startsWith(github.head_ref, 'main') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft)
233
196
strategy :
234
197
fail-fast : false
0 commit comments