Skip to content

Commit 722eb0a

Browse files
authored
Merge pull request #64 from Woile/ci/codecov-conf
ci: codeconv for github actions
2 parents 9576369 + 21951a4 commit 722eb0a

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ jobs:
2525
- name: Run tests
2626
run: |
2727
./scripts/test
28+
- name: Upload coverage to Codecov
29+
if: runner.os == 'Linux'
30+
uses: codecov/codecov-action@v1.0.3
31+
with:
32+
token: ${{secrets.CODECOV_TOKEN}}
33+
file: ./coverage.xml
34+
flags: unittests
35+
name: codecov-umbrella

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Commitizen
55
Python 3 command line utility to standardize commit messages and bump version
66

77

8-
.. image:: https://img.shields.io/travis/Woile/commitizen.svg?style=flat-square
9-
:alt: Travis
10-
:target: https://travis-ci.org/Woile/commitizen
8+
.. image:: https://github.com/Woile/commitizen/workflows/Python%20package/badge.svg
9+
:alt: Github Actions
10+
:target: https://github.com/Woile/commitizen/actions
1111

1212
.. image:: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square
1313
:alt: Conventional Commits

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ if [ -d 'venv' ] ; then
33
export PREFIX="venv/bin/"
44
fi
55

6-
${PREFIX}pytest --cov-report term-missing --cov=commitizen tests/
6+
${PREFIX}pytest --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
77
${PREFIX}black commitizen tests --check
88
${PREFIX}flake8 --max-line-length=88 commitizen/ tests/

0 commit comments

Comments
 (0)