Skip to content

Commit d76beca

Browse files
committed
DEBUG - skip to standalone
1 parent 2bb1c63 commit d76beca

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.azure/gpu-tests.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,7 @@ jobs:
125125
python requirements/pytorch/check-avail-extras.py
126126
displayName: 'Env details'
127127
128-
- bash: bash .actions/pull_legacy_checkpoints.sh
129-
displayName: 'Get legacy checkpoints'
130-
131-
- bash: python -m coverage run --source pytorch_lightning -m pytest .
132-
workingDirectory: src/pytorch_lightning
133-
displayName: 'Testing: PyTorch doctests'
134-
135-
- bash: python -m coverage run --source pytorch_lightning -m pytest --ignore benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
136-
env:
137-
PL_RUN_CUDA_TESTS: "1"
138-
workingDirectory: tests/tests_pytorch
139-
displayName: 'Testing: PyTorch standard'
140-
timeoutInMinutes: "35"
141-
142-
- bash: bash run_standalone_tests.sh
128+
- bash: bash run_standalone_tests.sh strategies/test_bagua_strategy.py
143129
workingDirectory: tests/tests_pytorch
144130
env:
145131
PL_USE_MOCKED_MNIST: "1"

tests/tests_pytorch/run_standalone_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ set -e
1717

1818
# Batch size for testing: Determines how many standalone test invocations run in parallel
1919
# It can be set through the env variable PL_STANDALONE_TESTS_BATCH_SIZE and defaults to 6 if not set
20-
test_batch_size="${PL_STANDALONE_TESTS_BATCH_SIZE:-6}"
20+
test_batch_size="${PL_STANDALONE_TESTS_BATCH_SIZE:-1}"
2121
source="${PL_STANDALONE_TESTS_SOURCE}"
2222

2323
# this environment variable allows special tests to run
2424
export PL_RUN_STANDALONE_TESTS=1
2525
# python arguments
26-
defaults="-m coverage run --source $source --append -m pytest --no-header"
26+
defaults="-m pytest --no-header"
2727

2828
# find tests marked as `@RunIf(standalone=True)`. done manually instead of with pytest because it is faster
2929
grep_output=$(grep --recursive --word-regexp . --regexp 'standalone=True' --include '*.py')

0 commit comments

Comments
 (0)