diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-11-29 08:40:48 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-11-29 08:40:48 -0500 |
commit | bf70b69d932c0c4f8d697142c0c42867d2e770e7 (patch) | |
tree | bc5feee06d7f694adb9007ac3d9d354548b0e217 | |
parent | d155ef30eb3b3f35eb0e099d40ad6b5f75057a4e (diff) | |
download | python-coveragepy-git-bf70b69d932c0c4f8d697142c0c42867d2e770e7.tar.gz |
Annotations for retries
-rw-r--r-- | .github/workflows/testsuite.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index bd793e41..5422e581 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -63,18 +63,28 @@ jobs: id: tox1 run: | python -m tox + if [ $? -ne 0 ]; then + # https://github.community/t/annotations-how-to-create-them/18387 + echo "::warning file=testsuite.yml,line=1,col=1::tox failed, retrying..." + fi - name: "Retry tox for ${{ matrix.python-version }}" id: tox2 if: steps.tox1.outcome == 'failure' run: | python -m tox + if [ $? -ne 0 ]; then + echo "::warning file=testsuite.yml,line=1,col=1::tox failed again, retrying..." + fi - name: "Retry tox again for ${{ matrix.python-version }}" id: tox3 if: steps.tox2.outcome == 'failure' run: | python -m tox + if [ $? -ne 0 ]; then + echo "::error file=testsuite.yml,line=1,col=1::tox failed a third time, probably a real failure" + fi - name: "Set status" if: always() |