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
yaoyuping
nnDetection
Commits
99a87fa1
Commit
99a87fa1
authored
May 02, 2022
by
Baumgartner, Michael
Browse files
add gitlab ci
parent
cde84743
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
+46
-0
nndet/.gitlab-ci.yml
nndet/.gitlab-ci.yml
+28
-0
tests/__init__.py
tests/__init__.py
+0
-0
tests/test_imports.py
tests/test_imports.py
+18
-0
No files found.
nndet/.gitlab-ci.yml
0 → 100644
View file @
99a87fa1
default
:
image
:
nvcr.io/nvidia/pytorch:22.01-py3
stages
:
-
build
build-job
:
stage
:
build
script
:
-
echo "Check Versions"
-
python --version
-
python -c "import torch"
-
pip --version
-
pip uninstall torchtext -y
-
echo "Install Package"
-
pip install .
-
pip install pytest
-
echo "Batchgen Master"
-
pip uninstall batchgenerators -y
-
pip install git+https://github.com/MIC-DKFZ/batchgenerators.git
-
echo "Run Tests"
-
coverage run -m pytest -v
-
coverage report
-
coverage xml
artifacts
:
reports
:
cobertura
:
coverage.xml
coverage
:
'
/TOTAL.*\s+(\d+\%)/'
tests/__init__.py
0 → 100644
View file @
99a87fa1
tests/test_imports.py
0 → 100644
View file @
99a87fa1
from
nndet.utils.info
import
SuppressPrint
def
test_nevergrad_import
():
import
nevergrad
as
ng
def
test_batchgenerators_import
():
import
batchgenerators
def
test_pytorch_lightning_import
():
import
pytorch_lightning
as
pl
def
test_nnunet_import
():
with
SuppressPrint
():
import
nnunet.preprocessing.preprocessing
as
nn_preprocessing
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