mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-24 15:50:33 +03:00
Merge pull request #4473 from hugovk/tokenless-codecov
Codecov now supports tokenless upload for GHA
This commit is contained in:
commit
95d0d1af96
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:
|
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 }}
|
||||||
|
|
5
.github/workflows/test-windows.yml
vendored
5
.github/workflows/test-windows.yml
vendored
|
@ -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 }}
|
||||||
|
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user