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 3c938f7
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ jobs:
run: poetry install

- name: Run tests
run: poetry run pytest
run: poetry run pytest --cov-report xml:coverage.xml --cov=t4_devkit

- 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 3c938f7

Please sign in to comment.