Skip to content

Commit

Permalink
Add test coverage report for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stsnel committed Jan 25, 2024
1 parent 0efcf57 commit 179b56f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coveragepy==7.4.0
- name: Lint with flake8
run: |
Expand All @@ -37,4 +38,9 @@ jobs:
run: |
python -m pip install --upgrade ./
cd unit-tests
python3 -m unittest unit_tests
coverage run --source=$(cd ../yclienttools ; pwd) -m unittest unit_tests
- name: Print test coverage report
run: |
cd unit-tests
coverage report

0 comments on commit 179b56f

Please sign in to comment.