Skip to content

Commit

Permalink
Codecov now supports tokenless upload for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 13, 2020
1 parent bf1a482 commit e2cf123
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
18 changes: 0 additions & 18 deletions .github/codecov-upstream.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/test-docker.yml
Expand Up @@ -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 changes: 0 additions & 5 deletions .github/workflows/test-windows.yml
Expand Up @@ -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 }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Expand Up @@ -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 }}

0 comments on commit e2cf123

Please sign in to comment.