mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 18:03:07 +03:00
Merge pull request #4266 from hugovk/gha-codecov-bash
GHA: Use python-pillow/Pillow's Codecov token for own builds
This commit is contained in:
commit
59481f5bb0
|
@ -6,8 +6,6 @@ codecov:
|
||||||
# https://docs.codecov.io/docs/comparing-commits
|
# https://docs.codecov.io/docs/comparing-commits
|
||||||
allow_coverage_offsets: true
|
allow_coverage_offsets: true
|
||||||
|
|
||||||
token: 6dafc396-e7f5-4221-a38a-8b07a49fbdae
|
|
||||||
|
|
||||||
comment: off
|
comment: off
|
||||||
|
|
||||||
# Matches 'omit:' in .coveragerc
|
# Matches 'omit:' in .coveragerc
|
||||||
|
|
18
.github/codecov-upstream.yml
vendored
Normal file
18
.github/codecov-upstream.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# 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: off
|
||||||
|
|
||||||
|
# Matches 'omit:' in .coveragerc
|
||||||
|
ignore:
|
||||||
|
- "Tests/32bit_segfault_check.py"
|
||||||
|
- "Tests/bench_cffi_access.py"
|
||||||
|
- "Tests/check_*.py"
|
||||||
|
- "Tests/createfontdatachunk.py"
|
8
.github/workflows/test-windows.yml
vendored
8
.github/workflows/test-windows.yml
vendored
|
@ -364,12 +364,16 @@ jobs:
|
||||||
name: errors
|
name: errors
|
||||||
path: Tests/errors
|
path: Tests/errors
|
||||||
|
|
||||||
|
- 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 }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
name: ${{ runner.os }} Python ${{ matrix.python-version }}
|
name: ${{ runner.os }} Python ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build wheel
|
||||||
id: wheel
|
id: wheel
|
||||||
|
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -89,9 +89,12 @@ jobs:
|
||||||
.travis/after_success.sh
|
.travis/after_success.sh
|
||||||
env:
|
env:
|
||||||
MATRIX_OS: ${{ matrix.os }}
|
MATRIX_OS: ${{ matrix.os }}
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user