Skip to content

Commit 4932798

Browse files
committed
Improving CICD tests stability (#1481)
* First approach * Changing time to 2 seconds * Upload the requirements * Preparing flag. * Update tests/test_grpc.py * Increasing delays and reruns.
1 parent f0e2210 commit 4932798

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,17 @@ jobs:
342342
LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
343343
MAPDL_IMAGE: ${{ env.DOCKER_PACKAGE }}:${{ matrix.mapdl-version }}
344344

345-
- name: Unit Testing
345+
- name: Unit Testing Requirements Installation
346346
run: |
347347
pip install -r requirements/requirements_tests.txt
348-
xvfb-run pytest -v --durations=0 --cov=ansys.mapdl.core --cov-report=xml --cov-report=html
348+
349+
- name: DPF Server Activation
350+
run: |
351+
docker run -d -v `pwd`:/dpf -p ${{ env.DPF_PORT }}:50054 ghcr.io/pyansys/dpf-core/dpf:v2021.1
352+
353+
- name: Unit Testing
354+
run: |
355+
xvfb-run pytest -v --durations=10 --maxfail=10 --reruns 7 --reruns-delay 3 --only-rerun MapdlExitedError --cov=ansys.mapdl.core --cov-report=xml --cov-report=html
349356
350357
- uses: codecov/codecov-action@v3
351358
if: matrix.mapdl-version == 'v21.2.1'

requirements/requirements_tests.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ pytest-cov==3.0.0
77
pyvista==0.36.1
88
pyansys-tools-report==0.3.2
99
vtk==9.0.3
10+
pytest-rerunfailures==10.2
11+
ansys-dpf-core==0.6.0

0 commit comments

Comments
 (0)