Skip to content

Commit

Permalink
add coverage to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDyllon committed Feb 23, 2023
1 parent 5268693 commit 0ae250e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ jobs:
FRONTEND_HOST: 'https://dev.merch.ntuscse.com'

BASE_API_SERVER_URL: 'https://api.dev.ntuscse.com'

- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-xml-coverage-path: ./coverage.xml

lint:
runs-on: ubuntu-latest
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ node_modules/
out/
docs_server/swagger/openapi.json

#env vars
.env.*
/.coverage

# pytest
/.pytest_cache/

# test coverage
/.coverage
/coverage_html/
/coverage.lcov
/coverage.xml
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ env_files =
.env
.env.test
.env.local
addopts = --cov=be --cov-report lcov --cov-report html:coverage_html
addopts = --cov=be --cov-report lcov --cov-report html:coverage_html --cov-report xml:coverage.xml

[pytest-watch]
beforerun = ./utils/setup_tests.py

0 comments on commit 0ae250e

Please sign in to comment.