From 875db199710f77fdff006a022cbd4d769d62b289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Mon, 5 Sep 2022 19:11:12 +0200 Subject: [PATCH] Add path filters for azure PR jobs (#14544) --- .azure/app-cloud-e2e.yml | 12 ++++++++++-- .azure/gpu-tests-lite.yml | 14 ++++++++++++-- .azure/hpu-tests.yml | 13 +++++++++++-- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/.azure/app-cloud-e2e.yml b/.azure/app-cloud-e2e.yml index 1511284cad..eef8a8b8bf 100644 --- a/.azure/app-cloud-e2e.yml +++ b/.azure/app-cloud-e2e.yml @@ -20,8 +20,16 @@ trigger: - "examples/app_*" pr: - - "master" - - "release/*" + branches: + include: + - "master" + - "release/*" + paths: + include: + - ".azure/app-cloud-e2e.yml" + - "requirements/app/**" + - "src/lightning_app/**" + - "examples/app_*" # variables are automatically exported as environment variables so this will override pip's default cache dir variables: diff --git a/.azure/gpu-tests-lite.yml b/.azure/gpu-tests-lite.yml index 5ceccade96..66fc3951b9 100644 --- a/.azure/gpu-tests-lite.yml +++ b/.azure/gpu-tests-lite.yml @@ -22,8 +22,18 @@ trigger: - "tests/tests_lite/run_standalone_tests.sh" # a symlink to the one above pr: - - "master" - - "release/*" + branches: + include: + - "master" + - "release/*" + paths: + include: + - ".azure/gpu-tests-lite.yml" + - "requirements/lite/**" + - "src/lightning_lite/**" + - "tests/tests_lite/**" + - "tests/tests_pytorch/run_standalone_tests.sh" + - "tests/tests_lite/run_standalone_tests.sh" # a symlink to the one above jobs: - job: testing diff --git a/.azure/hpu-tests.yml b/.azure/hpu-tests.yml index 785a9b0f01..33206ef5c3 100644 --- a/.azure/hpu-tests.yml +++ b/.azure/hpu-tests.yml @@ -18,8 +18,17 @@ trigger: - "tests/tests_pytorch/**" pr: - - "master" - - "release/*" + branches: + include: + - "master" + - "release/*" + paths: + include: + - ".azure/hpu-tests.yml" + - "examples/pl_hpu/mnist_sample.py" + - "requirements/pytorch/**" + - "src/pytorch_lightning/**" + - "tests/tests_pytorch/**" jobs: - job: testing