2828 strategy :
2929 fail-fast : false
3030 matrix :
31- python-version : ["3.8 "]
31+ python-version : ["3.7", "3.8", "3.9", "3.10 "]
3232 os : ["windows-latest", "ubuntu-18.04"]
3333
3434 steps :
5353
5454 - name : " Test Docstrings"
5555 uses :
pyansys/pydpf-actions/[email protected] 56+ if : matrix.python-version != '3.10' && matrix.python-version != '3.7' && matrix.os != 'Linux'
5657 with :
5758 MODULE : ${{env.MODULE}}
5859 PACKAGE_NAME : ${{env.PACKAGE_NAME}}
9697 pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .
9798
9899 - name : " Kill all servers"
99- uses :
pyansys/pydpf-actions/[email protected] 100+ uses :
pyansys/pydpf-actions/[email protected] .dev1 100101
101102 - name : " Test API test_launcher"
102103 shell : bash
@@ -105,7 +106,7 @@ jobs:
105106 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 .
106107
107108 - name : " Kill all servers"
108- uses :
pyansys/pydpf-actions/[email protected] 109+ uses :
pyansys/pydpf-actions/[email protected] .dev1 109110
110111 - name : " Test API test_server"
111112 shell : bash
@@ -114,7 +115,7 @@ jobs:
114115 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 .
115116
116117 - name : " Kill all servers"
117- uses :
pyansys/pydpf-actions/[email protected] 118+ uses :
pyansys/pydpf-actions/[email protected] .dev1 118119
119120 - name : " Test API test_local_server"
120121 shell : bash
@@ -123,7 +124,7 @@ jobs:
123124 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 .
124125
125126 - name : " Kill all servers"
126- uses :
pyansys/pydpf-actions/[email protected] 127+ uses :
pyansys/pydpf-actions/[email protected] .dev1 127128
128129 - name : " Test API test_multi_server"
129130 shell : bash
@@ -132,7 +133,7 @@ jobs:
132133 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 .
133134
134135 - name : " Kill all servers"
135- uses :
pyansys/pydpf-actions/[email protected] 136+ uses :
pyansys/pydpf-actions/[email protected] .dev1 136137
137138 - name : " Test API test_remote_workflow"
138139 shell : bash
@@ -141,7 +142,7 @@ jobs:
141142 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 .
142143
143144 - name : " Kill all servers"
144- uses :
pyansys/pydpf-actions/[email protected] 145+ uses :
pyansys/pydpf-actions/[email protected] .dev1 145146
146147 - name : " Test API test_remote_operator"
147148 shell : bash
@@ -150,21 +151,21 @@ jobs:
150151 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 .
151152
152153 - name : " Kill all servers"
153- uses :
pyansys/pydpf-actions/[email protected] 154+ uses :
pyansys/pydpf-actions/[email protected] .dev1 154155
155- - name : " Test API 3 "
156+ - name : " Test API test_workflow "
156157 shell : bash
157158 working-directory : test_workflow
158159 run : |
159160 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 .
160161
161162 - name : " Kill all servers"
162- uses :
pyansys/pydpf-actions/[email protected] 163+ uses :
pyansys/pydpf-actions/[email protected] .dev1 163164
164165 - name : " Upload Test Results"
165166 uses : actions/upload-artifact@v2
166167 with :
167- name : ${{ env.PACKAGE_NAME }}_pytest
168+ name : ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ env.ANSYS_VERSION }}
168169 path : tests/junit/test-results.xml
169170
170171 - name : " Upload coverage to Codecov"
@@ -206,39 +207,28 @@ jobs:
206207 install_extras : plotting
207208 wheelhouse : false
208209
209- - name : Install OpenGL
210- run : |
211- Set-StrictMode -Version Latest
212- $ErrorActionPreference = "Stop"
213- $PSDefaultParameterValues['*:ErrorAction']='Stop'
214- git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
215- powershell gl-ci-helpers/appveyor/install_opengl.ps1
210+ - name : " Setup headless display"
211+ uses : pyvista/setup-headless-display-action@v1
216212
217- - name : Install test offscreen rendering
218- run : |
219- .ci/setup_headless_display.sh
220- pip install -r .ci/requirements_test_xvfb.txt
221- python .ci/display_test.py
222-
223- - name : Setup Graphviz
213+ - name : " Setup Graphviz"
224214 uses : ts-graphviz/setup-graphviz@v1
225215
226216 - name : Install documentation packages for Python
227217 run : |
228218 pip install -r requirements/requirements_docs.txt
229219
230220 - name : " Kill all servers"
231- uses :
pyansys/pydpf-actions/[email protected] 221+ uses :
pyansys/pydpf-actions/[email protected] .dev1 232222
233- - name : Build Documentation
223+ - name : " Build Documentation"
234224 shell : cmd
235225 run : |
236226 cd .ci
237227 build_doc.bat > ..\docs\log.txt && type ..\docs\log.txt 2>&1
238228 timeout-minutes : 20
239229
240230 - name : " Kill all servers"
241- uses :
pyansys/pydpf-actions/[email protected] 231+ uses :
pyansys/pydpf-actions/[email protected] .dev1 242232
243233 - name : Publish Documentation artifact
244234 uses : actions/upload-artifact@v3
@@ -306,68 +296,55 @@ jobs:
306296 install_extras : plotting
307297 wheelhouse : false
308298
309- - name : Install OpenGL
310- run : |
311- Set-StrictMode -Version Latest
312- $ErrorActionPreference = "Stop"
313- $PSDefaultParameterValues['*:ErrorAction']='Stop'
314- git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
315- powershell gl-ci-helpers/appveyor/install_opengl.ps1
316-
317- - name : Install test offscreen rendering
318- run : |
319- .ci/setup_headless_display.sh
320- pip install -r .ci/requirements_test_xvfb.txt
321- python .ci/display_test.py
299+ - name : " Setup headless display"
300+ uses : pyvista/setup-headless-display-action@v1
322301
323302 - name : " Check examples with gatebin"
324- shell : cmd
303+ shell : bash
325304 run : |
326305 echo on
327306 cd .ci
328- dir .
307+ ls .
329308 python run_examples.py
330309
331310 - name : " Kill all servers"
332- uses :
pyansys/pydpf-actions/[email protected] 311+ uses :
pyansys/pydpf-actions/[email protected] .dev1 333312
334313 - name : " Uninstall gatebin"
335314 shell : bash
336315 run : |
337316 pip uninstall -y ansys-dpf-gatebin
338317
339318 - name : " Check sanity without gatebin INPROCESS"
340- shell : cmd
319+ shell : bash
341320 run : |
342321 cd .ci
343322 python run_non_regression_examples.py
344323 env :
345324 DPF_SERVER_TYPE : INPROCESS
346325
347326 - name : " Kill all servers"
348- uses :
pyansys/pydpf-actions/[email protected] 327+ uses :
pyansys/pydpf-actions/[email protected] .dev1 349328
350329
351330 - name : " Check sanity without gatebin GRPC"
352- shell : cmd
331+ shell : bash
353332 run : |
354333 cd .ci
355334 python run_non_regression_examples.py
356335 env :
357336 DPF_SERVER_TYPE : GRPC
358337
359338 - name : " Kill all servers"
360- uses :
pyansys/pydpf-actions/[email protected] 339+ uses :
pyansys/pydpf-actions/[email protected] .dev1 361340
362341 - name : " Check sanity without gatebin LEGACYGRPC"
363- shell : cmd
342+ shell : bash
364343 run : |
365344 cd .ci
366345 python run_non_regression_examples.py
367346 env :
368347 DPF_SERVER_TYPE : LEGACYGRPC
369348
370349 - name : " Kill all servers"
371- uses :
pyansys/pydpf-actions/[email protected] 372-
373-
350+ uses :
pyansys/pydpf-actions/[email protected]
0 commit comments