Skip to content

Commit 8e7e113

Browse files
authored
ci: make pydpf-post job information-only (#2272)
* ci: make pydpf-post job information-only * Mark pydpf-post.yml as continue-on-error * Remove change in ci.yml * Switch to step-level continue-on-error Job-level continue-on-error still reports workflow as having failed. Step-level must be used for the overall workflow to report success. * Report PyDPF-Post errors in PR
1 parent f55da78 commit 8e7e113

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pydpf-post.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,21 +147,37 @@ jobs:
147147
run: pip list
148148

149149
- name: "Test Docstrings"
150+
id: docstrings
150151
uses: ansys/pydpf-actions/[email protected]
151152
with:
152153
MODULE: post
153154
PACKAGE_NAME: ansys-dpf-post
154155
working-directory: pydpf-post/src
155156
if: inputs.test_docstrings == 'true'
156157
timeout-minutes: 10
158+
continue-on-error: true
159+
160+
- uses: mainmatter/continue-on-error-comment@v1
161+
with:
162+
repo-token: ${{ secrets.GITHUB_TOKEN }}
163+
outcome: ${{ steps.docstrings.outcome }}
164+
test-id: PyDPF-Post docstring tests on ${{ matrix.os }}
157165

158166
- name: "Test API"
167+
id: api
159168
shell: bash
160169
working-directory: pydpf-post/tests
161170
run: |
162171
pytest $DEBUG --maxfail=5 --reruns 2 .
163172
if: always()
164173
timeout-minutes: 60
174+
continue-on-error: true
165175

176+
- uses: mainmatter/continue-on-error-comment@v1
177+
with:
178+
repo-token: ${{ secrets.GITHUB_TOKEN }}
179+
outcome: ${{ steps.api.outcome }}
180+
test-id: PyDPF-Post API tests on ${{ matrix.os }}
181+
166182
- name: "Kill all servers"
167183
uses: ansys/pydpf-actions/[email protected]

0 commit comments

Comments
 (0)