Skip to content

Commit bc68ddb

Browse files
authored
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 5e8a012 commit bc68ddb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ jobs:
354354
355355
- name: Unit Testing
356356
run: |
357-
xvfb-run pytest -v --durations=10 --maxfail=10 --cov=ansys.mapdl.core --cov-report=xml --cov-report=html
357+
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
358358
359359
- uses: codecov/codecov-action@v3
360360
if: matrix.mapdl-version == 'v21.2.1'

requirements/requirements_tests.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +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-
ansys-dpf-core==0.6.0
10+
pytest-rerunfailures==10.2
11+
ansys-dpf-core==0.6.0

0 commit comments

Comments
 (0)