Skip to content

Commit 6af6648

Browse files
authored
Switch Codecov to GitHub Action (python-telegram-bot#2127)
1 parent 264b2c9 commit 6af6648

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ jobs:
5757
shell: bash --noprofile --norc {0}
5858

5959
- name: Submit coverage
60-
run: |
61-
if [ "$CODECOV_TOKEN" != "" ]; then
62-
codecov -F github -t $CODECOV_TOKEN --name "${{ matrix.os }}-${{ matrix.python-version }}"
63-
fi
64-
env:
65-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
66-
shell: bash
60+
uses: codecov/[email protected]
61+
with:
62+
env_vars: OS,PYTHON
63+
name: ${{ matrix.os }}-${{ matrix.python-version }}
64+
fail_ci_if_error: true
6765
test_official:
6866
name: test-official
6967
runs-on: ${{matrix.os}}

0 commit comments

Comments
 (0)