@@ -130,6 +130,20 @@ jobs:
130130 python requirements/pytorch/check-avail-extras.py
131131 displayName: 'Env details'
132132
133+ - bash : bash .actions/pull_legacy_checkpoints.sh
134+ displayName : ' Get legacy checkpoints'
135+
136+ - bash : python -m pytest pytorch_lightning
137+ workingDirectory : src
138+ displayName : ' Testing: PyTorch doctests'
139+
140+ - bash : python -m coverage run --source pytorch_lightning -m pytest --ignore benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
141+ env :
142+ PL_RUN_CUDA_TESTS : " 1"
143+ workingDirectory : tests/tests_pytorch
144+ displayName : ' Testing: PyTorch standard'
145+ timeoutInMinutes : " 35"
146+
133147 - bash : bash run_standalone_tests.sh
134148 workingDirectory : tests/tests_pytorch
135149 env :
@@ -138,3 +152,44 @@ jobs:
138152 PL_STANDALONE_TESTS_SOURCE : " pytorch_lightning"
139153 displayName : ' Testing: PyTorch standalone tests'
140154 timeoutInMinutes : " 35"
155+
156+ - bash : bash run_standalone_tasks.sh
157+ workingDirectory : tests/tests_pytorch
158+ env :
159+ PL_USE_MOCKED_MNIST : " 1"
160+ PL_RUN_CUDA_TESTS : " 1"
161+ displayName : ' Testing: PyTorch standalone tasks'
162+ timeoutInMinutes : " 10"
163+
164+ - bash : |
165+ python -m coverage report
166+ python -m coverage xml
167+ python -m coverage html
168+ python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
169+ ls -l
170+ workingDirectory: tests/tests_pytorch
171+ displayName: 'Statistics'
172+
173+ - task : PublishTestResults@2
174+ displayName : ' Publish test results'
175+ inputs :
176+ testResultsFiles : ' $(Build.StagingDirectory)/test-results.xml'
177+ testRunTitle : ' $(Agent.OS) - $(Build.DefinitionName) - Python $(python.version)'
178+ condition : succeededOrFailed()
179+
180+ - script : |
181+ set -e
182+ bash run_ddp_examples.sh
183+ bash run_pl_examples.sh --trainer.accelerator=gpu --trainer.devices=1
184+ bash run_pl_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp
185+ bash run_pl_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp --trainer.precision=16
186+ workingDirectory: examples
187+ env:
188+ PL_USE_MOCKED_MNIST: "1"
189+ displayName: 'Testing: PyTorch examples'
190+
191+ - bash : python -m pytest benchmarks -v --maxfail=2 --durations=0
192+ workingDirectory : tests/tests_pytorch
193+ env :
194+ PL_RUN_CUDA_TESTS : " 1"
195+ displayName : ' Testing: PyTorch benchmarks'
0 commit comments