Commit 99a87fa1 authored by Baumgartner, Michael's avatar Baumgartner, Michael
Browse files

add gitlab ci

parent cde84743
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+\%)/'
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
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