Skip to content

Commit 2b33d01

Browse files
committed
swap
1 parent 5c50254 commit 2b33d01

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

.azure/gpu-benchmarks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
pip list
7676
displayName: "Image info & NVIDIA"
7777
78+
- bash: |
79+
pip install -q -r .actions/requirements.txt
80+
python .actions/assistant.py copy_replace_imports --source_dir="./tests" \
81+
--source_import="lightning.fabric,lightning.pytorch" \
82+
--target_import="lightning_fabric,pytorch_lightning"
83+
displayName: "Adjust tests"
84+
7885
- bash: pip install -e .[dev] --find-links ${TORCH_URL}
7986
env:
8087
FREEZE_REQUIREMENTS: "1"
@@ -86,13 +93,6 @@ jobs:
8693
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu == 2, f'GPU: {mgpu}'"
8794
displayName: "Env details"
8895
89-
- bash: |
90-
pip install -q -r .actions/requirements.txt
91-
python .actions/assistant.py copy_replace_imports --source_dir="./tests" \
92-
--source_import="lightning.fabric,lightning.pytorch" \
93-
--target_import="lightning_fabric,pytorch_lightning"
94-
displayName: "Adjust tests"
95-
9696
- bash: python -m pytest parity_$(PACKAGE_NAME) -v --durations=0
9797
env:
9898
PL_RUNNING_BENCHMARKS: "1"

.azure/gpu-tests-fabric.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,18 @@ jobs:
109109
done
110110
displayName: "Adjust dependencies"
111111
112+
- bash: |
113+
pip install -q -r .actions/requirements.txt
114+
python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_fabric" \
115+
--source_import="lightning.fabric" \
116+
--target_import="lightning_fabric"
117+
python .actions/assistant.py copy_replace_imports --source_dir="./examples/fabric" \
118+
--source_import="lightning.fabric" \
119+
--target_import="lightning_fabric"
120+
# without succeeded this could run even if the job has already failed
121+
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'fabric'))
122+
displayName: "Adjust tests & examples"
123+
112124
- bash: |
113125
set -e
114126
extra=$(python -c "print({'lightning': 'fabric-'}.get('$(PACKAGE_NAME)', ''))")
@@ -129,18 +141,6 @@ jobs:
129141
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'fabric'))
130142
displayName: "Testing: Fabric doctests"
131143

132-
- bash: |
133-
pip install -q -r .actions/requirements.txt
134-
python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_fabric" \
135-
--source_import="lightning.fabric" \
136-
--target_import="lightning_fabric"
137-
python .actions/assistant.py copy_replace_imports --source_dir="./examples/fabric" \
138-
--source_import="lightning.fabric" \
139-
--target_import="lightning_fabric"
140-
# without succeeded this could run even if the job has already failed
141-
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'fabric'))
142-
displayName: "Adjust tests & examples"
143-
144144
- bash: python -m coverage run --source ${COVERAGE_SOURCE} -m pytest tests_fabric/ -v --durations=50
145145
workingDirectory: tests/
146146
displayName: "Testing: fabric standard"

.azure/gpu-tests-pytorch.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ jobs:
113113
done
114114
displayName: "Adjust dependencies"
115115
116+
- bash: |
117+
python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_pytorch" \
118+
--source_import="lightning.fabric,lightning.pytorch" \
119+
--target_import="lightning_fabric,pytorch_lightning"
120+
python .actions/assistant.py copy_replace_imports --source_dir="./examples/pytorch/basics" \
121+
--source_import="lightning.fabric,lightning.pytorch" \
122+
--target_import="lightning_fabric,pytorch_lightning"
123+
# without succeeded this could run even if the job has already failed
124+
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'pytorch'))
125+
displayName: "Adjust tests & examples"
126+
116127
- bash: |
117128
set -e
118129
extra=$(python -c "print({'lightning': 'pytorch-'}.get('$(PACKAGE_NAME)', ''))")
@@ -143,17 +154,6 @@ jobs:
143154
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'pytorch'))
144155
displayName: "Testing: PyTorch doctests"
145156

146-
- bash: |
147-
python .actions/assistant.py copy_replace_imports --source_dir="./tests/tests_pytorch" \
148-
--source_import="lightning.fabric,lightning.pytorch" \
149-
--target_import="lightning_fabric,pytorch_lightning"
150-
python .actions/assistant.py copy_replace_imports --source_dir="./examples/pytorch/basics" \
151-
--source_import="lightning.fabric,lightning.pytorch" \
152-
--target_import="lightning_fabric,pytorch_lightning"
153-
# without succeeded this could run even if the job has already failed
154-
condition: and(succeeded(), eq(variables['PACKAGE_NAME'], 'pytorch'))
155-
displayName: "Adjust tests & examples"
156-
157157
- bash: |
158158
bash .actions/pull_legacy_checkpoints.sh
159159
cd tests/legacy

0 commit comments

Comments
 (0)