1717 - " release/*"
1818
1919jobs :
20- - job : pytest
20+ - job : testing
2121 strategy :
2222 matrix :
2323 ' PyTorch - LTS ' :
@@ -28,15 +28,12 @@ jobs:
2828 timeoutInMinutes : " 100"
2929 # how much time to give 'run always even if cancelled tasks' before stopping them
3030 cancelTimeoutInMinutes : " 2"
31-
3231 pool : azure-jirka-spot
33-
3432 container :
3533 image : $(image)
3634 # default shm size is 64m. Increase it to avoid:
3735 # 'Error while creating shared memory: unhandled system error, NCCL version 2.7.8'
3836 options : " --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all --shm-size=512m"
39-
4037 workspace :
4138 clean : all
4239
5653 python -c "fname = 'requirements/strategies.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
5754 CUDA_VERSION_MM=$(python -c "import torch ; print(''.join(map(str, torch.version.cuda.split('.')[:2])))")
5855 pip install "bagua-cuda$CUDA_VERSION_MM>=0.9.0"
59- pip install . --requirement requirements/devel.txt
60- pip install . --requirement requirements/strategies.txt
56+ pip install -e .
57+ pip install --requirement requirements/devel.txt
58+ pip install --requirement requirements/strategies.txt
6159 pip list
6260 displayName: 'Install dependencies'
6361
7674 python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests --ignore tests/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
7775 displayName: 'Testing: standard'
7876
79- - bash : |
80- bash tests/standalone_tests.sh
77+ - bash : python -m coverage run --source pytorch_lightning -m pytest unittests_pl --ignore unittests_pl/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
78+ displayName : ' Testing: unittests'
79+ workingDirectory : test
80+
81+ - bash : bash run_standalone_tests.sh
82+ workingDirectory : test
8183 env :
8284 PL_USE_MOCKED_MNIST : " 1"
8385 displayName : ' Testing: standalone'
8890 python -m coverage html
8991 python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
9092 ls -l
93+ workingDirectory: test
9194 displayName: 'Statistics'
9295
9396 - task : PublishTestResults@2
@@ -117,6 +120,6 @@ jobs:
117120 PL_USE_MOCKED_MNIST: "1"
118121 displayName: 'Testing: examples'
119122
120- - bash : |
121- python -m pytest tests/benchmarks -v --maxfail=2 --durations=0
123+ - bash : python -m pytest unittests_pl/benchmarks -v --maxfail=2 --durations=0
124+ workingDirectory : test
122125 displayName : ' Testing: benchmarks'
0 commit comments