Skip to content

Commit 2888007

Browse files
committed
Revert debug
1 parent 4ecb32c commit 2888007

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.azure/gpu-tests-lite.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,33 @@ jobs:
7878
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
7979
displayName: 'Env details'
8080
81+
- bash: python -m coverage run --source lightning_lite -m pytest --ignore benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
82+
env:
83+
PL_RUN_CUDA_TESTS: "1"
84+
workingDirectory: tests/tests_lite
85+
displayName: 'Testing: Lite standard'
86+
timeoutInMinutes: "10"
87+
8188
- bash: bash run_standalone_tests.sh
8289
workingDirectory: tests/tests_lite
8390
env:
8491
PL_RUN_CUDA_TESTS: "1"
8592
PL_STANDALONE_TESTS_SOURCE: "lightning_lite"
8693
displayName: 'Testing: Lite standalone tests'
8794
timeoutInMinutes: "10"
95+
96+
- bash: |
97+
python -m coverage report
98+
python -m coverage xml
99+
python -m coverage html
100+
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
101+
ls -l
102+
workingDirectory: tests/tests_lite
103+
displayName: 'Statistics'
104+
105+
- task: PublishTestResults@2
106+
displayName: 'Publish test results'
107+
inputs:
108+
testResultsFiles: '$(Build.StagingDirectory)/test-results.xml'
109+
testRunTitle: '$(Agent.OS) - $(Build.DefinitionName) - Python $(python.version)'
110+
condition: succeededOrFailed()

.azure/gpu-tests-pytorch.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)