Skip to content

Commit 4d54385

Browse files
committed
try
1 parent 6baadee commit 4d54385

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
shell: bash
123123
working-directory: tests
124124
run: |
125-
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .
125+
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --log-level=ERROR --junitxml=junit/test-results.xml .
126126
127127
- name: "Kill all servers"
128128
uses: pyansys/pydpf-actions/[email protected]
@@ -132,7 +132,7 @@ jobs:
132132
shell: bash
133133
working-directory: test_launcher
134134
run: |
135-
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 .
135+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results2.xml .
136136
if: always()
137137

138138
- name: "Kill all servers"
@@ -143,7 +143,7 @@ jobs:
143143
shell: bash
144144
working-directory: test_server
145145
run: |
146-
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 .
146+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results4.xml .
147147
if: always()
148148

149149
- name: "Kill all servers"
@@ -154,7 +154,7 @@ jobs:
154154
shell: bash
155155
working-directory: test_local_server
156156
run: |
157-
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 .
157+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results5.xml .
158158
if: always()
159159

160160
- name: "Kill all servers"
@@ -165,7 +165,7 @@ jobs:
165165
shell: bash
166166
working-directory: test_multi_server
167167
run: |
168-
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 .
168+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results6.xml .
169169
if: always()
170170

171171
- name: "Kill all servers"
@@ -176,7 +176,7 @@ jobs:
176176
shell: bash
177177
working-directory: test_remote_workflow
178178
run: |
179-
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 .
179+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results7.xml .
180180
if: always()
181181

182182
- name: "Kill all servers"
@@ -187,7 +187,7 @@ jobs:
187187
shell: bash
188188
working-directory: test_remote_operator
189189
run: |
190-
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 .
190+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results8.xml .
191191
if: always()
192192

193193
- name: "Kill all servers"
@@ -198,7 +198,7 @@ jobs:
198198
shell: bash
199199
working-directory: test_workflow
200200
run: |
201-
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 .
201+
pytest $DEBUG --cov=ansys.dpf.core --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=../tests/junit/test-results3.xml .
202202
if: always()
203203

204204
- name: "Kill all servers"

ansys/dpf/core/server_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def __init__(self):
355355
self._server_id = None
356356
self._session_instance = None
357357
self._base_service_instance = None
358-
self._context = None
358+
self._context = server_context.SERVER_CONTEXT
359359
self._docker_config = server_factory.RunningDockerConfig()
360360

361361
def set_as_global(self, as_global=True):

0 commit comments

Comments
 (0)