Skip to content

Commit

Permalink
Added retry to linux cicd (#3665)
Browse files Browse the repository at this point in the history
* retry to yaml

* retry to yaml

* retry to yaml

---------

Co-authored-by: maxcapodi78 <Shark78>
  • Loading branch information
maxcapodi78 authored Sep 28, 2023
1 parent 36f9966 commit 652a916
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/cpython_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,31 @@ jobs:
python -c "import pyaedt; print('Imported pyaedt')"
- name: 'Unit testing'
timeout-minutes: 120
run: |
export ANS_NODEPCHECK=1
export ANSYSEM_ROOT232=/apps/AnsysEM/v232/Linux64
export LD_LIBRARY_PATH=$ANSYSEM_ROOT232/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .pyaedt_test_env/bin/activate
pytest --tx 6*popen --durations=50 --dist loadfile -v _unittest
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_minutes: 60
command: |
export ANS_NODEPCHECK=1
export ANSYSEM_ROOT232=/apps/AnsysEM/v232/Linux64
export LD_LIBRARY_PATH=$ANSYSEM_ROOT232/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .pyaedt_test_env/bin/activate
pytest --tx 6*popen --durations=50 --dist loadfile -v _unittest
- name: 'Unit testing Solvers'
timeout-minutes: 120
run: |
export ANS_NODEPCHECK=1
export ANSYSEM_ROOT232=/apps/AnsysEM/v232/Linux64
export LD_LIBRARY_PATH=$ANSYSEM_ROOT232/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .pyaedt_test_env/bin/activate
pytest --tx 2*popen --durations=50 --dist loadfile -v _unittest_solvers
continue-on-error: true
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_minutes: 60
command: |
export ANS_NODEPCHECK=1
export ANSYSEM_ROOT232=/apps/AnsysEM/v232/Linux64
export LD_LIBRARY_PATH=$ANSYSEM_ROOT232/common/mono/Linux64/lib64:$LD_LIBRARY_PATH
source .pyaedt_test_env/bin/activate
pytest --tx 2*popen --durations=50 --dist loadfile -v _unittest_solvers
- name: Upload pytest test results
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 652a916

Please sign in to comment.