Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre.delaunay committed Jul 8, 2024
1 parent 3ce28f7 commit 5516b85
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/tests_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,16 @@ jobs:
- name: tests
run: |
source $(poetry env info -p)/bin/activate
pytest --ignore=tests/integration tests/
coverage run --source=milabench -m pytest --ignore=tests/integration tests/
coverage combine
coverage report -m
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
env_vars: PLATFORM,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
4 changes: 2 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 @@ -49,6 +49,7 @@ pytest-cov = "^3.0.0"
Sphinx = "^4.5.0"
sphinx-rtd-theme = "^1.0.0"
pytest-regressions = "^2.4.2"
coverage = "^7.5.4"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 5516b85

Please sign in to comment.