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
05d731ab
"...git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "92f27daa1f673fb340f368d38976d527aa87191f"
Commit
05d731ab
authored
Oct 03, 2022
by
shanmugamr
Browse files
Setting up code coverage
parent
07916bf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
.gitlab-ci.yml
.gitlab-ci.yml
+7
-3
No files found.
.gitlab-ci.yml
View file @
05d731ab
...
@@ -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
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