Skip to content

Commit

Permalink
use pytest to generate coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Heba Elayoty <[email protected]>
  • Loading branch information
helayoty committed Jan 10, 2025
1 parent 67ec9a1 commit 3186f31
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/unit-tests-ragengine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ jobs:
- name: Generate Report
run: |
pip install coverage
coverage run -m unittest
pip install pytest
pytest --cov app
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
## Comma-separated list of files to upload
files: ./coverage-rag.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

0 comments on commit 3186f31

Please sign in to comment.