Skip to content

Commit

Permalink
Merge pull request #9 from brainelectronics/feature/add-unittest-cove…
Browse files Browse the repository at this point in the history
…rage-badge-to-readme

Add unittest coverage badge to readme
  • Loading branch information
brainelectronics authored Aug 5, 2022
2 parents f60b542 + 08ba5ad commit 5c5556a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ jobs:
- name: Test built package
run: |
twine check dist/*.tar.gz
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
OS: 'ubuntu-latest'
PYTHON: ${{ matrix.python-version }}
if: ${{ matrix.python-version == '3.9' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./reports/coverage/
env_vars: OS,PYTHON
# fail_ci_if_error: true # default is false
files: ./reports/coverage/coverage.xml
flags: unittests
# name: codecov-umbrella
# path_to_write_report: ./reports/coverage/codecov_report.txt
verbose: true
- name: Archive build package artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.python-version == '3.9' }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
![Release](https://img.shields.io/github/v/release/brainelectronics/changelog2version?include_prereleases&color=success)
![Python](https://img.shields.io/badge/python3-Ok-green.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/github/brainelectronics/changelog2version/branch/main/graph/badge.svg)](https://app.codecov.io/github/brainelectronics/changelog2version)

Update version info file with latest changelog version entry

Expand Down

0 comments on commit 5c5556a

Please sign in to comment.