update codecov

This commit is contained in:
Jiri BOROVEC
2019-08-07 14:32:32 +02:00
parent 421c4fab7d
commit 86a90bfefd
5 changed files with 18 additions and 12 deletions
+7 -3
View File
@@ -17,7 +17,7 @@ pip install -e .
pip install -r requirements.txt
# run tests
py.test
py.test -v
```
To test models that require GPU make sure to run the above command on a GPU machine.
@@ -50,10 +50,14 @@ cd pytorch-lightning
# generate coverage
pip install coverage
coverage run tests/test_models.py
coverage run --source pytorch_lightning -m py.test pytorch_lightning tests examples -v --doctest-modules
# print coverage stats
coverage report -m
coverage report -m
# exporting resulys
coverage xml
codecov -t 17327163-8cca-4a5d-86c8-ca5f2ef700bc -v
```
+6 -4
View File
@@ -1,20 +1,22 @@
import os
import shutil
import warnings
from argparse import Namespace
import pytest
import numpy as np
import torch
from pytorch_lightning import Trainer
from examples import LightningTemplateModel
from pytorch_lightning.testing.lm_test_module import LightningTestModel
from argparse import Namespace
from test_tube import Experiment, SlurmCluster
# sys.path += [os.path.abspath('..'), os.path.abspath('../..')]
from pytorch_lightning import Trainer
from pytorch_lightning.testing.lm_test_module import LightningTestModel
from pytorch_lightning.callbacks import ModelCheckpoint, EarlyStopping
from pytorch_lightning.utilities.debugging import MisconfigurationException
from pytorch_lightning.root_module import memory
from pytorch_lightning.models.trainer import reduce_distributed_output
from pytorch_lightning.root_module import model_saving
from examples import LightningTemplateModel
SEED = 2334
torch.manual_seed(SEED)