Skip to content

Commit

Permalink
ci: add support of visualizing test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Nov 14, 2024
1 parent 93d8ba1 commit 35b4ee1
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ jobs:

- name: Run tests
run: poetry run pytest

- name: Get test coverage
uses: orgoro/[email protected]
continue-on-error: true
with:
coverageFile: ./coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.5
thresholdNew: 0.8
thresholdModified: 0.8
99 changes: 97 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pycocotools = "^2.0.8"
pytest = "^8.2.2"
pytest-asyncio = "^0.23.7"
pytest-mock = "^3.14.0"
pytest-cov = "^6.0.0"
lark = "^1.1.9"
mkdocs = "^1.6.0"
mkdocstrings = { extras = ["python"], version = "^0.25.1" }
Expand Down

0 comments on commit 35b4ee1

Please sign in to comment.