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
0e24b31f
Unverified
Commit
0e24b31f
authored
May 02, 2022
by
kapsner
Committed by
GitHub
May 02, 2022
Browse files
Merge branch 'MIC-DKFZ:main' into main
parents
34e8cfc7
4c899398
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
1 deletion
+47
-1
.gitlab-ci.yml
.gitlab-ci.yml
+28
-0
setup.py
setup.py
+1
-1
tests/__init__.py
tests/__init__.py
+0
-0
tests/test_imports.py
tests/test_imports.py
+18
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
0e24b31f
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+\%)/'
setup.py
View file @
0e24b31f
...
@@ -96,7 +96,7 @@ setup(
...
@@ -96,7 +96,7 @@ setup(
name
=
'nndet'
,
name
=
'nndet'
,
version
=
"v0.1"
,
version
=
"v0.1"
,
packages
=
find_packages
(),
packages
=
find_packages
(),
include_package_data
=
True
,
#
include_package_data=True,
test_suite
=
"unittest"
,
test_suite
=
"unittest"
,
long_description
=
readme
,
long_description
=
readme
,
long_description_content_type
=
'text/markdown'
,
long_description_content_type
=
'text/markdown'
,
...
...
tests/__init__.py
0 → 100644
View file @
0e24b31f
tests/test_imports.py
0 → 100644
View file @
0e24b31f
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