Commit fb8c09eb authored by shanmugamr's avatar shanmugamr
Browse files

Code coverage setup

parent 05d731ab
[html]
directory = coverage
\ No newline at end of file
...@@ -2,13 +2,9 @@ image: gitlab-master.nvidia.com/dl/dgx/pytorch:21.12-py3-devel ...@@ -2,13 +2,9 @@ image: gitlab-master.nvidia.com/dl/dgx/pytorch:21.12-py3-devel
test: test:
script: script:
- coverage run -m pytest --cov-report term --cov=megatron/core tests/ - python -m pytest --cov-report term --cov-report=html --cov=megatron/core tests/
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts: artifacts:
reports: paths:
coverage_report: - coverage
coverage_format: cobertura expire_in: 30 days
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