Commit 05d731ab authored by shanmugamr's avatar shanmugamr
Browse files

Setting up code coverage

parent 07916bf2
...@@ -2,9 +2,13 @@ image: gitlab-master.nvidia.com/dl/dgx/pytorch:21.12-py3-devel ...@@ -2,9 +2,13 @@ image: gitlab-master.nvidia.com/dl/dgx/pytorch:21.12-py3-devel
test: test:
script: script:
- pytest --junitxml=report.xml tests - coverage run -m pytest --cov-report term --cov=megatron/core tests/
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
when: always
reports: reports:
junit: report.xml coverage_report:
coverage_format: cobertura
path: coverage.xml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment