mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Codecov now supports tokenless upload for GHA
This commit is contained in:
parent
bf1a482a45
commit
e2cf123850
18
.github/codecov-upstream.yml
vendored
18
.github/codecov-upstream.yml
vendored
|
@ -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"
|
5
.github/workflows/test-docker.yml
vendored
5
.github/workflows/test-docker.yml
vendored
|
@ -58,14 +58,9 @@ jobs:
|
|||
env:
|
||||
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
|
||||
if: success()
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
flags: GHA_Docker
|
||||
name: ${{ matrix.docker }}
|
||||
|
|
5
.github/workflows/test-windows.yml
vendored
5
.github/workflows/test-windows.yml
vendored
|
@ -357,15 +357,10 @@ jobs:
|
|||
.ci/after_success.sh
|
||||
shell: pwsh
|
||||
|
||||
- name: Prepare coverage token
|
||||
if: success() && github.repository == 'python-pillow/Pillow'
|
||||
run: cp .github/codecov-upstream.yml codecov.yml
|
||||
|
||||
- name: Upload coverage
|
||||
if: success()
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ./coverage.xml
|
||||
flags: GHA_Windows
|
||||
name: ${{ runner.os }} Python ${{ matrix.python-version }}
|
||||
|
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -100,13 +100,8 @@ jobs:
|
|||
run: |
|
||||
.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
|
||||
if: success()
|
||||
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user