Skip to content

Commit 2461412

Browse files
Bordalexierule
authored andcommitted
minor ci format
1 parent 73ea199 commit 2461412

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.azure/gpu-tests-pytorch.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
- bash: |
127127
set -e
128128
python requirements/collect_env_details.py
129-
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
129+
python -c "import torch ; nb_gpus = torch.cuda.device_count() ; assert nb_gpus == 2, f'GPU: {nb_gpus}'"
130130
python requirements/pytorch/check-avail-extras.py
131131
python -c "import bitsandbytes"
132132
displayName: "Env details"
@@ -138,10 +138,12 @@ jobs:
138138
displayName: "Testing: PyTorch doctests"
139139

140140
- bash: |
141-
python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_pytorch" \
141+
python .actions/assistant.py copy_replace_imports \
142+
--source_dir="./tests/tests_pytorch" \
142143
--source_import="lightning.fabric,lightning.pytorch" \
143144
--target_import="lightning_fabric,pytorch_lightning"
144-
python .actions/assistant.py copy_replace_imports --source_dir="./examples/pytorch/basics" \
145+
python .actions/assistant.py copy_replace_imports \
146+
--source_dir="./examples/pytorch/basics" \
145147
--source_import="lightning.fabric,lightning.pytorch" \
146148
--target_import="lightning_fabric,pytorch_lightning"
147149
# without succeeded this could run even if the job has already failed
@@ -183,8 +185,10 @@ jobs:
183185
# https://docs.codecov.com/docs/codecov-uploader
184186
curl -Os https://uploader.codecov.io/latest/linux/codecov
185187
chmod +x codecov
186-
./codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) \
187-
--flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure
188+
./codecov --token=$(CODECOV_TOKEN) \
189+
--commit=$(Build.SourceVersion) \
190+
--flags=gpu,pytest,${COVERAGE_SOURCE} \
191+
--name="GPU-coverage" --env=linux,azure
188192
ls -l
189193
workingDirectory: tests/tests_pytorch
190194
displayName: "Statistics"

0 commit comments

Comments
 (0)