Keep codecov-action

This commit is contained in:
Andrew Murray 2019-12-24 19:11:46 +11:00
parent 1e5c2564b1
commit 22ac95a588
2 changed files with 16 additions and 20 deletions

View File

@ -364,19 +364,16 @@ jobs:
name: 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
if: success()
run: |
if [ "$GITHUB_REPOSITORY" == "python-pillow/Pillow" ]; then
echo "CI on python-pillow/Pillow, copy CodeCov settings"
cp .github/codecov-upstream.yml .codecov.yml
fi
echo Upload coverage
curl -s https://codecov.io/bash | bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_NAME: ${{ runner.os }} Python ${{ matrix.python-version }}
shell: bash
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ runner.os }} Python ${{ matrix.python-version }}
- name: Build wheel
id: wheel

View File

@ -97,14 +97,13 @@ jobs:
MATRIX_OS: ${{ matrix.os }}
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
if: success()
run: |
if [ "$GITHUB_REPOSITORY" == "python-pillow/Pillow" ]; then
echo "CI on python-pillow/Pillow, copy CodeCov settings"
cp .github/codecov-upstream.yml .codecov.yml
fi
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}