Skip to content

Commit

Permalink
add coverage report logic for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SushilMallRC committed Apr 3, 2024
1 parent 77f85e2 commit c9fd48e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
#Run unit tests
python -m unittest discover . --pattern '*test.py'
coverage run -m unittest discover . --pattern '*test.py'
coverage report
5 changes: 3 additions & 2 deletions .github/workflows/release-with-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

name: Python application

on:
on:
push:
tags:
- '*'
Expand Down Expand Up @@ -37,7 +37,8 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
#Run unit tests
python -m unittest discover . --pattern '*test.py'
coverage run -m unittest discover . --pattern '*test.py'
coverage report
- name: release
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down

0 comments on commit c9fd48e

Please sign in to comment.