Skip to content

Commit

Permalink
use retry
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Nov 26, 2023
1 parent cc18cce commit 67e1525
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/test_pyaedt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,19 @@ jobs:
pip install --no-cache-dir external/pyaedt[tests]
# Copy-Item -Path "C:\actions-runner\opengl32.dll" -Destination ".venv\Lib\site-packages\vtkmodules" -Force
- name: 'Pyaedt tests with plot'
run: |
.\.venv\Scripts\Activate.ps1
Set-Item -Path env:PYTHONMALLOC -Value "malloc"
pytest -vv --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external\pyaedt\_unittest\test_02_2D_modeler.py
# - name: 'Pyaedt tests with plot'
# run: |
# .\.venv\Scripts\Activate.ps1
# Set-Item -Path env:PYTHONMALLOC -Value "malloc"
# pytest -vv --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external\pyaedt\_unittest\test_02_2D_modeler.py

# uses: nick-fields/retry@v2
# with:
# max_attempts: 1
# retry_on: error
# timeout_minutes: 80
# command: |
# .\.venv\Scripts\Activate.ps1
# Set-Item -Path env:PYTHONMALLOC -Value "malloc"
# pytest --durations=50 -v --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external\pyaedt\_unittest\test_12_1_PostProcessing.py::TestClass::test_14_Field_Ploton_cutplanedesignname
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_minutes: 50
command: |
.\.venv\Scripts\Activate.ps1
Set-Item -Path env:PYTHONMALLOC -Value "malloc"
# pytest --durations=50 -v --cov=external/pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external\pyaedt\_unittest\test_12_1_PostProcessing.py::TestClass::test_14_Field_Ploton_cutplanedesignname
pytest -n 6 --dist loadfile --durations=50 -v --cov=pyaedt --cov-report=xml --cov-report=html --junitxml=junit/test-results.xml external\pyaedt\_unittest

0 comments on commit 67e1525

Please sign in to comment.