Skip to content

Commit

Permalink
Use Codecov instead of Coveralls
Browse files Browse the repository at this point in the history
Codecov can receive and process multiple coverage reports for the same
job by merging them.
  • Loading branch information
amotl committed Apr 8, 2021
1 parent 858d45f commit 91ba313
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ jobs:
run: |
bin/flake8
bin/coverage run bin/test -vv1
bin/coverage xml
# https://github.com/codecov/codecov-action
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.venv*
.coverage
coverage.xml
.idea/
.installed.cfg
.tox/
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ CrateDB Python Client
:target: https://github.com/crate/crate-python/actions?workflow=Tests
:alt: Build status

.. image:: https://coveralls.io/repos/github/crate/crate-python/badge.svg?branch=master
:target: https://coveralls.io/github/crate/crate-python?branch=master
.. image:: https://codecov.io/gh/crate/crate-python/branch/master/graph/badge.svg
:target: https://app.codecov.io/gh/crate/crate-python
:alt: Coverage

.. image:: https://readthedocs.org/projects/crate-python/badge/
Expand Down
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# https://docs.codecov.io/docs/common-recipe-list
# https://docs.codecov.io/docs/commit-status#patch-status

coverage:
status:
project:
default:
target: 85% # the required coverage value
threshold: 3% # the leniency in hitting the target

0 comments on commit 91ba313

Please # to comment.