2323 # how much time to give 'run always even if cancelled tasks' before stopping them
2424 cancelTimeoutInMinutes : 2
2525
26- pool : dsvm -spot-pool
26+ pool : gridai -spot-pool
2727
2828 # strategy:
2929 # matrix:
@@ -58,25 +58,31 @@ jobs:
5858 export GIT_TERMINAL_PROMPT=1
5959 #sudo apt-get install -y cmake
6060 # python -m pip install "pip==20.1"
61- pip install --requirement requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
61+ pip install --requirement requirements.txt
6262 python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)"
6363 python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
6464 pip install --requirement ./requirements/devel.txt --upgrade-strategy only-if-needed
6565 pip install git+https://$(AUTH_TOKEN)@github.com/PyTorchLightning/[email protected] --no-cache-dir 6666 pip list
6767 displayName: 'Install dependencies'
6868
69- - script : |
69+ - bash : |
7070 python tests/collect_env_details.py
71+ python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'"
7172 displayName: 'Env details'
7273
74+ # todo: require proper fix in docker image
75+ - bash : |
76+ pip install torchtext==0.7 -U
77+ displayName: 'HotFix'
78+
7379 - bash : |
7480 wget https://pl-public-data.s3.amazonaws.com/legacy/checkpoints.zip -P legacy/
7581 unzip -o legacy/checkpoints.zip -d legacy/
7682 ls -l legacy/checkpoints/
7783 displayName: 'Get legacy checkpoints'
7884
79- - script : |
85+ - bash : |
8086 python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=50
8187 displayName: 'Testing: standard'
8288
@@ -90,12 +96,14 @@ jobs:
9096 codecov --token=$(CODECOV_TOKEN) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
9197 displayName: 'Statistics'
9298
93- - script : |
94- python -m pytest benchmarks pl_examples -v --maxfail=2 --durations=0
95- displayName: 'Testing: extended'
96-
97- - script : |
98- python setup.py install --user --quiet
99- bash pl_examples/run_ddp-example.sh
100- pip uninstall -y pytorch-lightning
101- displayName: 'Examples'
99+ - bash : |
100+ python -m pytest benchmarks -v --maxfail=2 --durations=0
101+ displayName: 'Testing: benchmarks'
102+
103+ # todo: put this back just when TorchVision can download datasets
104+ # - bash: |
105+ # python -m pytest pl_examples -v --maxfail=2 --durations=0
106+ # python setup.py install --user --quiet
107+ # bash pl_examples/run_ddp-example.sh
108+ # pip uninstall -y pytorch-lightning
109+ # displayName: 'Examples'
0 commit comments