From e25375a77047d9113dab90de17ac4ef2bf9085b4 Mon Sep 17 00:00:00 2001 From: Kohulan Rajan Date: Tue, 28 May 2024 13:49:45 +0200 Subject: [PATCH] test: codecov upload --- .github/workflows/test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 573adba..8eece6d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,8 +39,15 @@ jobs: run: | python3 -m pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - run: | - curl -Os https://cli.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage.xml + uses: Wandalen/wretry.action@v3.5.0 + with: + action: codecov/codecov-action@v4.4.1 + with: | + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + name: codecov-umbrella + fail_ci_if_error: true + verbose: true + attempt_limit: 5 + attempt_delay: 30000