Fix Codecov upload with token (#115384)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
TheJulianJES 2024-04-11 21:51:09 +02:00 committed by GitHub
parent 6c1bc2a9f4
commit 6ba7a30cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1088,25 +1088,17 @@ jobs:
pattern: coverage-* pattern: coverage-*
- name: Upload coverage to Codecov (full coverage) - name: Upload coverage to Codecov (full coverage)
if: needs.info.outputs.test_full_suite == 'true' if: needs.info.outputs.test_full_suite == 'true'
uses: Wandalen/wretry.action@v3.1.0 uses: codecov/codecov-action@v4.3.0
with: with:
action: codecov/codecov-action@v4.3.0 fail_ci_if_error: true
with: | flags: full-suite
fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }}
flags: full-suite
token: ${{ env.CODECOV_TOKEN }}
attempt_limit: 5
attempt_delay: 30000
- name: Upload coverage to Codecov (partial coverage) - name: Upload coverage to Codecov (partial coverage)
if: needs.info.outputs.test_full_suite == 'false' if: needs.info.outputs.test_full_suite == 'false'
uses: Wandalen/wretry.action@v3.1.0 uses: codecov/codecov-action@v4.3.0
with: with:
action: codecov/codecov-action@v4.3.0 fail_ci_if_error: true
with: | token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
attempt_limit: 5
attempt_delay: 30000
pytest-partial: pytest-partial:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -1234,22 +1226,14 @@ jobs:
pattern: coverage-* pattern: coverage-*
- name: Upload coverage to Codecov (full coverage) - name: Upload coverage to Codecov (full coverage)
if: needs.info.outputs.test_full_suite == 'true' if: needs.info.outputs.test_full_suite == 'true'
uses: Wandalen/wretry.action@v3.1.0 uses: codecov/codecov-action@v4.3.0
with: with:
action: codecov/codecov-action@v4.3.0 fail_ci_if_error: true
with: | flags: full-suite
fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }}
flags: full-suite
token: ${{ env.CODECOV_TOKEN }}
attempt_limit: 5
attempt_delay: 30000
- name: Upload coverage to Codecov (partial coverage) - name: Upload coverage to Codecov (partial coverage)
if: needs.info.outputs.test_full_suite == 'false' if: needs.info.outputs.test_full_suite == 'false'
uses: Wandalen/wretry.action@v3.1.0 uses: codecov/codecov-action@v4.3.0
with: with:
action: codecov/codecov-action@v4.3.0 fail_ci_if_error: true
with: | token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
attempt_limit: 5
attempt_delay: 30000