Merge pull request #40 from radarhere/gha-codecov-bash

Keep codecov-action
This commit is contained in:
Hugo van Kemenade 2019-12-24 15:05:35 +02:00 committed by GitHub
commit fe57b98c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }}