Skip to content

Commit 28d3348

Browse files
authored
Retrying build coverage step on failure (#1640)
* Retry coverage step on error * Added timeout to limit single retry time * Added shell option to the step
1 parent 4f3b2de commit 28d3348

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/generate_coverage.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,22 @@ jobs:
5353
conda list
5454
5555
- name: Build dpnp with coverage
56+
id: build_coverage
57+
uses: nick-fields/[email protected]
58+
with:
59+
shell: bash
60+
timeout_minutes: 60
61+
max_attempts: 5
62+
retry_on: error
63+
command: |
64+
. $CONDA/etc/profile.d/conda.sh
65+
conda activate coverage
66+
git clean -fxd
67+
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py"
68+
69+
- name: Total number of coverage attempts
5670
run: |
57-
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py"
71+
echo "Total number of coverage attempts made: ${{ steps.build_coverage.outputs.total_attempts }}"
5872
5973
- name: Install coverall dependencies
6074
run: |

0 commit comments

Comments
 (0)