File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66
66
pip list
67
67
displayName: 'Install dependencies'
68
68
69
- - script : |
69
+ - bash : |
70
70
python tests/collect_env_details.py
71
+ python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'"
71
72
displayName: 'Env details'
72
73
73
74
- bash : |
76
77
ls -l legacy/checkpoints/
77
78
displayName: 'Get legacy checkpoints'
78
79
79
- - script : |
80
+ - bash : |
80
81
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=50
81
82
displayName: 'Testing: standard'
82
83
@@ -90,11 +91,11 @@ jobs:
90
91
codecov --token=$(CODECOV_TOKEN) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
91
92
displayName: 'Statistics'
92
93
93
- - script : |
94
+ - bash : |
94
95
python -m pytest benchmarks pl_examples -v --maxfail=2 --durations=0
95
96
displayName: 'Testing: extended'
96
97
97
- - script : |
98
+ - bash : |
98
99
python setup.py install --user --quiet
99
100
bash pl_examples/run_ddp-example.sh
100
101
pip uninstall -y pytorch-lightning
You can’t perform that action at this time.
0 commit comments