Skip to content

Commit

Permalink
Add code coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed May 12, 2024
1 parent 1ae0e77 commit 90294b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
pip install -r requirements.dev.txt
- name: Test the code with pytest
run: |
pytest .
pytest --cov=app .
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Analysing the code with pylint
run: |
pylint --rc-file pylintrc.toml -j 0 app scripts tests && lint_result=$? || lint_result=$?
Expand Down
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

pytest
pytest-asyncio
pytest-cov
pylint

0 comments on commit 90294b5

Please sign in to comment.