Skip to content

Commit cdf70a2

Browse files
author
Hugo Osvaldo Barrera
committed
Report coverage on CI
1 parent a4eff16 commit cdf70a2

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ jobs:
2222
pipenv install --dev
2323
- name: Run tests
2424
run: pipenv run pytest
25+
- name: Report coverage
26+
run: pipenv run codecov
27+
env:
28+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ pytest-cov = "*"
99

1010
[packages]
1111
python-barcode = {editable = true,path = "."}
12+
pytest-cov = "*"
13+
codecov = "*"

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ python-barcode
55
:target: https://github.com/WhyNotHugo/python-barcode/actions
66
:alt: CI status
77

8+
.. image:: https://codecov.io/gh/WhyNotHugo/python-barcode/branch/master/graph/badge.svg
9+
:target: https://codecov.io/gh/WhyNotHugo/python-barcode
10+
:alt: Build coverage
11+
812
.. image:: https://readthedocs.org/projects/python-barcode/badge/
913
:target: https://python-barcode.rtfd.org/
1014
:alt: documentation

0 commit comments

Comments
 (0)