Skip to content

Commit 151eca8

Browse files
committed
Retry coverage step on error
1 parent 9575363 commit 151eca8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,19 @@ jobs:
5353
conda list
5454
5555
- name: Build dpnp with coverage
56+
id: build_coverage
57+
uses: nick-fields/retry@v2.9.0
58+
with:
59+
max_attempts: 5
60+
retry_on: error
61+
command: |
62+
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py"
63+
on_retry_command: |
64+
git clean -fxd
65+
66+
- name: Total number of coverage attempts
5667
run: |
57-
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py"
68+
echo "Total number of coverage attempts made: ${{ steps.build_coverage.outputs.total_attempts }}"
5869
5970
- name: Install coverall dependencies
6071
run: |

0 commit comments

Comments
 (0)