Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
fb8c09eb
Commit
fb8c09eb
authored
Oct 03, 2022
by
shanmugamr
Browse files
Code coverage setup
parent
05d731ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
.coveragerc
.coveragerc
+2
-0
.gitlab-ci.yml
.gitlab-ci.yml
+4
-8
No files found.
.coveragerc
0 → 100644
View file @
fb8c09eb
[html]
directory = coverage
\ No newline at end of file
.gitlab-ci.yml
View file @
fb8c09eb
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment