This commit is contained in:
awaelchli 2024-07-11 23:54:46 +02:00
parent 66ff1e3a8e
commit d91c4a6e83
2 changed files with 6 additions and 8 deletions

View File

@ -82,7 +82,6 @@ jobs:
echo $CUDA_VISIBLE_DEVICES echo $CUDA_VISIBLE_DEVICES
echo $CUDA_VERSION_MM echo $CUDA_VERSION_MM
echo $TORCH_URL echo $TORCH_URL
echo $COVERAGE_SOURCE
whereis nvidia whereis nvidia
nvidia-smi nvidia-smi
which python && which pip which python && which pip
@ -114,7 +113,7 @@ jobs:
- bash: python -m pytest src/lightning/fabric - bash: python -m pytest src/lightning/fabric
displayName: "Testing: Fabric doctests" displayName: "Testing: Fabric doctests"
- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest . -v --durations=50 - bash: python -m coverage run --source lightning -m pytest . -v --durations=50
workingDirectory: tests/tests_fabric/ workingDirectory: tests/tests_fabric/
displayName: "Testing: fabric standard" displayName: "Testing: fabric standard"
timeoutInMinutes: "10" timeoutInMinutes: "10"
@ -122,7 +121,7 @@ jobs:
- bash: bash ../run_standalone_tests.sh "." - bash: bash ../run_standalone_tests.sh "."
workingDirectory: tests/tests_fabric/ workingDirectory: tests/tests_fabric/
env: env:
PL_STANDALONE_TESTS_SOURCE: $(COVERAGE_SOURCE) PL_STANDALONE_TESTS_SOURCE: lightning
displayName: "Testing: fabric standalone" displayName: "Testing: fabric standalone"
timeoutInMinutes: "10" timeoutInMinutes: "10"
@ -135,7 +134,7 @@ jobs:
curl -Os https://uploader.codecov.io/latest/linux/codecov curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov chmod +x codecov
./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \ ./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
--flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure --flags=gpu,pytest,lightning --name="GPU-coverage" --env=linux,azure
ls -l ls -l
workingDirectory: tests/tests_fabric/ workingDirectory: tests/tests_fabric/
displayName: "Statistics" displayName: "Statistics"

View File

@ -86,7 +86,6 @@ jobs:
echo $CUDA_VISIBLE_DEVICES echo $CUDA_VISIBLE_DEVICES
echo $CUDA_VERSION_MM echo $CUDA_VERSION_MM
echo $TORCH_URL echo $TORCH_URL
echo $COVERAGE_SOURCE
whereis nvidia whereis nvidia
nvidia-smi nvidia-smi
which python && which pip which python && which pip
@ -128,7 +127,7 @@ jobs:
ls -l checkpoints/ ls -l checkpoints/
displayName: "Get legacy checkpoints" displayName: "Get legacy checkpoints"
- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest -v --durations=50 - bash: python -m coverage run --source lightning -m pytest -v --durations=50
workingDirectory: tests/tests_pytorch workingDirectory: tests/tests_pytorch
displayName: "Testing: PyTorch standard" displayName: "Testing: PyTorch standard"
timeoutInMinutes: "35" timeoutInMinutes: "35"
@ -137,7 +136,7 @@ jobs:
workingDirectory: tests/tests_pytorch workingDirectory: tests/tests_pytorch
env: env:
PL_USE_MOCKED_MNIST: "1" PL_USE_MOCKED_MNIST: "1"
PL_STANDALONE_TESTS_SOURCE: $(COVERAGE_SOURCE) PL_STANDALONE_TESTS_SOURCE: lightning
displayName: "Testing: PyTorch standalone tests" displayName: "Testing: PyTorch standalone tests"
timeoutInMinutes: "35" timeoutInMinutes: "35"
@ -157,7 +156,7 @@ jobs:
curl -Os https://uploader.codecov.io/latest/linux/codecov curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov chmod +x codecov
./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \ ./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
--flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure --flags=gpu,pytest,lightning --name="GPU-coverage" --env=linux,azure
ls -l ls -l
workingDirectory: tests/tests_pytorch workingDirectory: tests/tests_pytorch
displayName: "Statistics" displayName: "Statistics"