File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ local tputests = base.BaseTest {
21
21
command: utils.scriptCommand(
22
22
|||
23
23
source ~/.bashrc
24
+ set -e
24
25
conda activate lightning
25
26
mkdir -p /home/runner/work/pytorch-lightning && cd /home/runner/work/pytorch-lightning
26
27
git clone https://github.com/Lightning-AI/lightning.git
@@ -31,21 +32,18 @@ local tputests = base.BaseTest {
31
32
git checkout {SHA}
32
33
export PACKAGE_NAME=pytorch
33
34
export FREEZE_REQUIREMENTS=1
34
- export PL_STANDALONE_TESTS_BATCH_SIZE=1
35
35
pip install -e .[test]
36
36
echo $KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS
37
37
export XRT_TPU_CONFIG="tpu_worker;0;${KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS:7}"
38
38
export PL_RUN_TPU_TESTS=1
39
39
cd tests/tests_pytorch
40
- set -e
41
40
coverage run --source=pytorch_lightning -m pytest -vv --durations=0 ./
42
41
echo "\n||| Running standalone tests |||\n"
42
+ export PL_STANDALONE_TESTS_BATCH_SIZE=1
43
43
bash run_standalone_tests.sh
44
- test_exit_code=$?
45
44
echo "\n||| END PYTEST LOGS |||\n"
46
45
coverage xml
47
46
cat coverage.xml | tr -d '\t'
48
- test $test_exit_code -eq 0
49
47
|||
50
48
),
51
49
};
You can’t perform that action at this time.
0 commit comments