Only run TPU standalone tests (#16586)

This commit is contained in:
Carlos Mocholí 2023-02-01 13:23:48 +01:00 committed by GitHub
parent cc49e4a31f
commit 854db60269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ jobs:
env:
PYTHON_VER: 3.8
strategy:
fail-fast: false
fail-fast: true
max-parallel: 1 # run sequential
matrix:
# TODO: add also lightning

View File

@ -53,7 +53,7 @@ local tputests = base.BaseTest {
PL_RUN_TPU_TESTS=1 coverage run --source=lightning_fabric -m pytest -vv --durations=0 ./
echo "--- Running standalone Fabric tests ---"
PL_STANDALONE_TESTS_SOURCE=lightning_fabric PL_STANDALONE_TESTS_BATCH_SIZE=1 bash run_standalone_tests.sh
PL_RUN_TPU_TESTS=1 PL_STANDALONE_TESTS_SOURCE=lightning_fabric PL_STANDALONE_TESTS_BATCH_SIZE=1 bash run_standalone_tests.sh
echo "--- Generating coverage ---"
coverage xml

View File

@ -53,7 +53,7 @@ local tputests = base.BaseTest {
PL_RUN_TPU_TESTS=1 coverage run --source=pytorch_lightning -m pytest -vv --durations=0 ./
echo "--- Running standalone PL tests ---"
PL_STANDALONE_TESTS_SOURCE=pytorch_lightning PL_STANDALONE_TESTS_BATCH_SIZE=1 bash run_standalone_tests.sh
PL_RUN_TPU_TESTS=1 PL_STANDALONE_TESTS_SOURCE=pytorch_lightning PL_STANDALONE_TESTS_BATCH_SIZE=1 bash run_standalone_tests.sh
echo "--- Generating coverage ---"
coverage xml