6464 --source_import="lightning.fabric,lightning.pytorch" \
6565 --target_import="lightning_fabric,pytorch_lightning"
6666 fi
67-
67+
6868 extra=$(python -c "print({'lightning': 'pytorch-'}.get('$(PACKAGE_NAME)', ''))")
6969 pip install -e ".[${extra}dev]" -U --upgrade-strategy=eager --extra-index-url="${TORCH_URL}"
7070
@@ -75,39 +75,39 @@ run: |
7575 # Drop PL for LAI
7676 pip uninstall -y pytorch-lightning
7777 fi
78-
78+
7979 python requirements/collect_env_details.py
8080 python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'"
8181 python requirements/pytorch/check-avail-extras.py
8282 python -c "import bitsandbytes"
83-
83+
8484 # Testing: Fabric doctests
8585 if [ "${PACKAGE_NAME}" == "pytorch" ]; then
8686 cd src/
8787 python -m pytest pytorch_lightning
8888 cd ..
8989 fi
90-
90+
9191 # Get legacy checkpoints
9292 bash .actions/pull_legacy_checkpoints.sh
9393 cd tests/legacy
9494 bash generate_checkpoints.sh
9595 ls -l checkpoints/
96-
96+
9797 cd tests/
9898 # Testing: fabric standard
9999 python -m coverage run --source ${COVERAGE_SOURCE} -m pytest tests_pytorch/ -v --durations=50
100-
100+
101101 # Testing: fabric standalone
102102 export PL_USE_MOCKED_MNIST=1
103103 export PL_RUN_STANDALONE_TESTS=1
104104 wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/run_standalone_tests.sh
105105 bash ./run_standalone_tests.sh "tests_pytorch"
106-
106+
107107 # Testing: PyTorch standalone tasks
108108 cd tests_pytorch/
109109 bash run_standalone_tasks.sh
110-
110+
111111 python -m coverage report
112112 python -m coverage xml
113113 python -m coverage html
@@ -120,7 +120,7 @@ run: |
120120 # --flags=gpu,pytest,${COVERAGE_SOURCE} --name="GPU-coverage" --env=linux,azure
121121 # ls -l
122122 cd ../..
123-
123+
124124 # Testing: PyTorch examples
125125 cd examples/
126126 bash run_pl_examples.sh --trainer.accelerator=gpu --trainer.devices=1
0 commit comments