Skip to content

Commit 2596a31

Browse files
committed
add time out and disable always
1 parent 1c10008 commit 2596a31

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/test_docker.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,20 @@ jobs:
5959
working-directory: test_launcher
6060
run: |
6161
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results2.xml --reruns 2 .
62-
if: always()
6362
timeout-minutes: 20
6463

6564
- name: "Test API test_server"
6665
shell: bash
6766
working-directory: test_server
6867
run: |
6968
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results4.xml --reruns 2 .
70-
if: always()
7169
timeout-minutes: 10
7270

7371
- name: "Test API test_local_server"
7472
shell: bash
7573
working-directory: test_local_server
7674
run: |
7775
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results5.xml --reruns 2 .
78-
if: always()
7976
timeout-minutes: 20
8077

8178
- name: "Test API test_multi_server"
@@ -104,22 +101,20 @@ jobs:
104101
working-directory: test_workflow
105102
run: |
106103
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results3.xml --reruns 3 .
107-
if: always()
108104
timeout-minutes: 20
109105

110106
- name: "Test API test_service"
111107
shell: bash
112108
working-directory: test_service
113109
run: |
114110
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results9.xml --reruns 3 .
115-
if: always()
116111
117112
- name: "Upload Test Results"
118113
uses: actions/upload-artifact@v3
119114
with:
120115
name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ env.ANSYS_VERSION }}_docker
121116
path: tests/junit/test-results.xml
122-
if: always()
117+
timeout-minutes: 20
123118

124119
- name: "Upload coverage to Codecov"
125120
uses: codecov/codecov-action@v3

.github/workflows/tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ jobs:
133133
working-directory: test_launcher
134134
run: |
135135
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results2.xml --reruns 2 .
136-
if: always()
137136
138137
- name: "Kill all servers"
139138
uses: pyansys/pydpf-actions/[email protected]
@@ -155,7 +154,6 @@ jobs:
155154
working-directory: test_local_server
156155
run: |
157156
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results5.xml --reruns 2 .
158-
if: always()
159157
160158
- name: "Kill all servers"
161159
uses: pyansys/pydpf-actions/[email protected]
@@ -166,7 +164,6 @@ jobs:
166164
working-directory: test_multi_server
167165
run: |
168166
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results6.xml --reruns 2 .
169-
if: always()
170167
171168
- name: "Kill all servers"
172169
uses: pyansys/pydpf-actions/[email protected]
@@ -177,7 +174,6 @@ jobs:
177174
working-directory: test_remote_workflow
178175
run: |
179176
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results7.xml --reruns 2 .
180-
if: always()
181177
182178
- name: "Kill all servers"
183179
uses: pyansys/pydpf-actions/[email protected]
@@ -188,7 +184,6 @@ jobs:
188184
working-directory: test_remote_operator
189185
run: |
190186
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results8.xml --reruns 2 .
191-
if: always()
192187
193188
- name: "Kill all servers"
194189
uses: pyansys/pydpf-actions/[email protected]
@@ -210,7 +205,6 @@ jobs:
210205
working-directory: test_service
211206
run: |
212207
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results9.xml --reruns 3 .
213-
if: always()
214208
215209
- name: "Kill all servers"
216210
uses: pyansys/pydpf-actions/[email protected]

0 commit comments

Comments
 (0)