Merge pull request #4473 from hugovk/tokenless-codecov

Codecov now supports tokenless upload for GHA
This commit is contained in:
Andrew Murray 2020-03-14 10:24:42 +11:00 committed by GitHub
commit 95d0d1af96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 33 deletions

View File

@ -1,18 +0,0 @@
# Documentation: https://docs.codecov.io/docs/codecov-yaml
codecov:
# Avoid "Missing base report" due to committing CHANGES.rst with "[CI skip]"
# https://github.com/codecov/support/issues/363
# https://docs.codecov.io/docs/comparing-commits
allow_coverage_offsets: true
token: 6dafc396-e7f5-4221-a38a-8b07a49fbdae
comment: false
# Matches 'omit:' in .coveragerc
ignore:
- "Tests/32bit_segfault_check.py"
- "Tests/bench_cffi_access.py"
- "Tests/check_*.py"
- "Tests/createfontdatachunk.py"

View File

@ -58,14 +58,9 @@ jobs:
env: env:
MATRIX_DOCKER: ${{ matrix.docker }} MATRIX_DOCKER: ${{ matrix.docker }}
- name: Prepare coverage token
if: success() && github.repository == 'python-pillow/Pillow'
run: cp .github/codecov-upstream.yml codecov.yml
- name: Upload coverage - name: Upload coverage
if: success() if: success()
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1
with: with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: GHA_Docker flags: GHA_Docker
name: ${{ matrix.docker }} name: ${{ matrix.docker }}

View File

@ -357,15 +357,10 @@ jobs:
.ci/after_success.sh .ci/after_success.sh
shell: pwsh shell: pwsh
- name: Prepare coverage token
if: success() && github.repository == 'python-pillow/Pillow'
run: cp .github/codecov-upstream.yml codecov.yml
- name: Upload coverage - name: Upload coverage
if: success() if: success()
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1
with: with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml file: ./coverage.xml
flags: GHA_Windows flags: GHA_Windows
name: ${{ runner.os }} Python ${{ matrix.python-version }} name: ${{ runner.os }} Python ${{ matrix.python-version }}

View File

@ -100,13 +100,8 @@ jobs:
run: | run: |
.ci/after_success.sh .ci/after_success.sh
- name: Prepare coverage token
if: success() && github.repository == 'python-pillow/Pillow'
run: cp .github/codecov-upstream.yml codecov.yml
- name: Upload coverage - name: Upload coverage
if: success() if: success()
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }} run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }} CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}