Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed Jun 12, 2024
1 parent 7dc3312 commit 6c9fe15
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
source = django_ai_assistant

[report]
omit =
*/tests/*
*/migrations/*
*static*
*/templates/*
4 changes: 3 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- name: Run tests
run: |
poetry run pytest
poetry run coverage run -m pytest
coveralls
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:
working-directory: ./frontend
run: |
npm test
npm run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Loading

0 comments on commit 6c9fe15

Please sign in to comment.