Skip to content

Commit 8dc8691

Browse files
committed
CI: Fix Codecov uploader by using GitHub Action recipe
1 parent 85e4e5e commit 8dc8691

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,11 @@ jobs:
3232
- name: Run tests
3333
run: |
3434
coverage run --source grafana_client -m xmlrunner discover -o test-reports
35-
codecov
35+
coverage xml
3636
shell: bash
37+
38+
# https://github.com/codecov/codecov-action
39+
- name: Upload coverage results to Codecov
40+
uses: codecov/codecov-action@v2
41+
with:
42+
fail_ci_if_error: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pip-log.txt
4141
pip-delete-this-directory.txt
4242

4343
# Unit test / coverage reports
44+
test-reports/
4445
htmlcov/
4546
.tox/
4647
.coverage

0 commit comments

Comments
 (0)