diff --git a/.azure/app-cloud-e2e.yml b/.azure/app-cloud-e2e.yml index ec11400089e4b..971210d840fe0 100644 --- a/.azure/app-cloud-e2e.yml +++ b/.azure/app-cloud-e2e.yml @@ -30,7 +30,6 @@ pr: - ".actions/**" - ".azure/app-cloud-e2e.yml" - "src/lightning_app/**" - - "examples/app_*/**" # some tests_app tests call examples files - "requirements/app/**" - "tests/tests_examples_app/**" - "setup.py" @@ -94,8 +93,8 @@ jobs: 'App: custom_work_dependencies': name: "custom_work_dependencies" dir: "local" - timeoutInMinutes: "20" - cancelTimeoutInMinutes: "2" + timeoutInMinutes: "10" + cancelTimeoutInMinutes: "1" # values: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases?view=azure-devops&tabs=yaml#workspace workspace: clean: all @@ -165,7 +164,7 @@ jobs: ls -l examples/${TEST_APP_NAME} ls -l tests/tests_examples_app/public python -m pytest tests/tests_examples_app/${TEST_APP_FOLDER}/test_${TEST_APP_NAME}.py::test_${TEST_APP_NAME}_example_cloud \ - --timeout=1200 --capture=no -v --color=yes + --timeout=540 --capture=no -v --color=yes env: HEADLESS: '1' PACKAGE_LIGHTNING: '1' diff --git a/.azure/gpu-benchmark.yml b/.azure/gpu-benchmark.yml index 6d16dcaf7ace5..bcd925e1d267e 100644 --- a/.azure/gpu-benchmark.yml +++ b/.azure/gpu-benchmark.yml @@ -24,7 +24,7 @@ pr: - "tests/tests_pytorch/benchmarks/**" - "requirements/pytorch/**" exclude: - - "requirements/pytorch/docs.txt" + - "requirements/*/docs.txt" - "*.md" - "**/*.md" diff --git a/.azure/gpu-tests-lite.yml b/.azure/gpu-tests-lite.yml index e7ea5b6e670f4..4545f77f73056 100644 --- a/.azure/gpu-tests-lite.yml +++ b/.azure/gpu-tests-lite.yml @@ -31,7 +31,7 @@ pr: - "tests/tests_lite/**" - "setup.cfg" # includes pytest config exclude: - - "requirements/lite/docs.txt" + - "requirements/*/docs.txt" - "*.md" - "**/*.md" diff --git a/.github/checkgroup.yml b/.github/checkgroup.yml index 4241aa2256175..dac1e77bfed86 100644 --- a/.github/checkgroup.yml +++ b/.github/checkgroup.yml @@ -5,6 +5,7 @@ subprojects: - id: "pytorch_lightning: Tests workflow" paths: + - ".actions/**" - ".github/workflows/ci-pytorch-tests.yml" - "requirements/lite/**" - "src/lightning_lite/**" @@ -13,8 +14,7 @@ subprojects: - "tests/tests_pytorch/**" - "tests/legacy/back-compatible-versions.txt" - "setup.cfg" # includes pytest config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -40,6 +40,7 @@ subprojects: - id: "pytorch_lightning: Azure GPU" paths: + - ".actions/**" - ".azure/gpu-tests-pytorch.yml" # only the azure GPU workflow runs the examples # all examples don't need to be added because they aren't used in CI, but these are @@ -55,8 +56,8 @@ subprojects: - "setup.cfg" # includes pytest config - "requirements/lite/**" - "src/lightning_lite/**" - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -75,6 +76,7 @@ subprojects: - id: "pytorch_lightning: Azure HPU" paths: + - ".actions/**" - ".azure/hpu-tests.yml" - "examples/pl_hpu/mnist_sample.py" - "requirements/lite/**" @@ -83,8 +85,7 @@ subprojects: - "src/pytorch_lightning/**" - "tests/tests_pytorch/**" - "setup.cfg" # includes pytest config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -92,6 +93,7 @@ subprojects: - id: "pytorch_lightning: Azure IPU" paths: + - ".actions/**" - ".azure/ipu-tests.yml" - "requirements/lite/**" - "src/lightning_lite/**" @@ -99,8 +101,8 @@ subprojects: - "src/pytorch_lightning/**" - "tests/tests_pytorch/**" - "setup.cfg" # includes pytest config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -109,6 +111,7 @@ subprojects: # TODO: since this job has intermittent availability, it cannot be required #- id: "pytorch-lightning: TPU workflow" # paths: + # - ".actions/**" # - ".github/workflows/tpu-tests.yml" # - "dockers/base-xla/*" # - "requirements/lite/**" @@ -118,8 +121,7 @@ subprojects: # - "src/pytorch_lightning/**" # - "tests/tests_pytorch/**" # - "setup.cfg" # includes pytest config - # - ".actions/**" - # - "!requirements/**/docs.txt" + # - "!requirements/*/docs.txt" # - "!*.md" # - "!**/*.md" # checks: @@ -129,12 +131,12 @@ subprojects: paths: - "src/pytorch_lightning/**" - "docs/source-pytorch/**" + - ".actions/**" - ".github/workflows/docs-checks.yml" - "requirements/docs.txt" - "requirements/pytorch/**" - "setup.py" - "setup.cfg" # includes metadata used in the package creation - - ".actions/**" - "!*.md" - "!**/*.md" checks: @@ -143,14 +145,14 @@ subprojects: - id: "pytorch_lightning: Docker" paths: - - "dockers/**" + - ".actions/**" - ".github/workflows/ci-pytorch-dockers.yml" + - "dockers/**" - "requirements/pytorch/**" - "requirements/lite/**" - "environment.yml" - "setup.py" - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -171,13 +173,13 @@ subprojects: - id: "lightning_lite: CPU workflow" paths: + - ".actions/**" - "requirements/lite/**" - "src/lightning_lite/**" - "tests/tests_lite/**" - "setup.cfg" # includes pytest config - ".github/workflows/ci-lite-tests.yml" - - ".actions/**" - - "!requirements/lite/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -200,6 +202,7 @@ subprojects: - id: "lightning_lite: Azure GPU" paths: + - ".actions/**" - ".azure/gpu-tests-lite.yml" - "examples/lite/**" - "examples/run_lite_examples.sh" @@ -209,8 +212,7 @@ subprojects: - "src/lightning_lite/**" - "tests/tests_lite/**" - "setup.cfg" # includes pytest config - - ".actions/**" - - "!requirements/lite/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -220,13 +222,13 @@ subprojects: - id: "lightning_app: Tests workflow" paths: + - ".actions/**" - ".github/workflows/ci-app-tests.yml" - "src/lightning_app/**" - "tests/tests_app/**" - "requirements/app/**" - "setup.py" - - ".actions/**" - - "!requirements/app/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -242,14 +244,14 @@ subprojects: - id: "lightning_app: Examples" paths: + - ".actions/**" - ".github/workflows/ci-app-examples.yml" - "src/lightning_app/**" - "tests/tests_examples_app/**" - "examples/app_*/**" - "requirements/app/**" - "setup.py" - - ".actions/**" - - "!requirements/app/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -265,14 +267,13 @@ subprojects: - id: "lightning_app: Azure" paths: + - ".actions/**" - ".azure/app-cloud-e2e.yml" - - "requirements/app/**" - "src/lightning_app/**" - - "examples/app_*/**" # some tests_app tests call examples files + - "requirements/app/**" - "tests/tests_examples_app/**" - "setup.py" - - ".actions/**" - - "!requirements/app/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -280,6 +281,7 @@ subprojects: - id: "lightning_app: Docs" paths: + - ".actions/**" - "src/lightning_app/**" - "docs/source-app/**" - ".github/workflows/docs-checks.yml" @@ -287,7 +289,6 @@ subprojects: - "requirements/app/**" - "setup.py" - "setup.cfg" # includes metadata used in the package creation - - ".actions/**" - "!*.md" - "!**/*.md" checks: @@ -298,12 +299,13 @@ subprojects: - id: "mypy" paths: + - ".actions/**" - ".github/workflows/code-checks.yml" - "requirements/**" - "src/**" - "pyproject.toml" # includes mypy config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: @@ -316,7 +318,8 @@ subprojects: - "setup.py" - "src/**" - "requirements/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" checks: diff --git a/.github/workflows/ci-app-examples.yml b/.github/workflows/ci-app-examples.yml index c9d401fa2e9fb..b1a79ea50d9bc 100644 --- a/.github/workflows/ci-app-examples.yml +++ b/.github/workflows/ci-app-examples.yml @@ -8,14 +8,14 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: + - ".actions/**" - ".github/workflows/ci-app-examples.yml" - "src/lightning_app/**" - "tests/tests_examples_app/**" - "examples/app_*/**" - "requirements/app/**" - "setup.py" - - ".actions/**" - - "!requirements/app/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/ci-app-tests.yml b/.github/workflows/ci-app-tests.yml index 0f8d63e70d3b8..5b0619bcdfcbf 100644 --- a/.github/workflows/ci-app-tests.yml +++ b/.github/workflows/ci-app-tests.yml @@ -8,13 +8,13 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: + - ".actions/**" - ".github/workflows/ci-app-tests.yml" - "src/lightning_app/**" - "tests/tests_app/**" - "requirements/app/**" - "setup.py" - - ".actions/**" - - "!requirements/app/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/ci-lite-tests.yml b/.github/workflows/ci-lite-tests.yml index f548e3482f856..91a69fee90ebd 100644 --- a/.github/workflows/ci-lite-tests.yml +++ b/.github/workflows/ci-lite-tests.yml @@ -8,13 +8,13 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: + - ".actions/**" - "requirements/lite/**" - "src/lightning_lite/**" - "tests/tests_lite/**" - "setup.cfg" # includes pytest config - ".github/workflows/ci-lite-tests.yml" - - ".actions/**" - - "!requirements/lite/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/ci-pkg-install.yml b/.github/workflows/ci-pkg-install.yml index e749b4916357f..4d2cc896453a9 100644 --- a/.github/workflows/ci-pkg-install.yml +++ b/.github/workflows/ci-pkg-install.yml @@ -13,7 +13,8 @@ on: - "setup.py" - "src/**" - "requirements/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/ci-pytorch-dockers.yml b/.github/workflows/ci-pytorch-dockers.yml index 0c45a22d89ee8..929550376b6f4 100644 --- a/.github/workflows/ci-pytorch-dockers.yml +++ b/.github/workflows/ci-pytorch-dockers.yml @@ -7,14 +7,14 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: - - "dockers/**" + - ".actions/**" - ".github/workflows/ci-pytorch-dockers.yml" + - "dockers/**" - "requirements/pytorch/**" - "requirements/lite/**" - "environment.yml" - "setup.py" - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" schedule: diff --git a/.github/workflows/ci-pytorch-tests.yml b/.github/workflows/ci-pytorch-tests.yml index bf861854c9c36..5c6d7e02df0cb 100644 --- a/.github/workflows/ci-pytorch-tests.yml +++ b/.github/workflows/ci-pytorch-tests.yml @@ -8,6 +8,7 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: + - ".actions/**" - "requirements/pytorch/**" - "src/pytorch_lightning/**" - "tests/tests_pytorch/**" @@ -16,8 +17,7 @@ on: - ".github/workflows/ci-pytorch-tests.yml" - "requirements/lite/**" - "src/lightning_lite/**" - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/pytorch/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 2688b175063ed..62d5b8db62ea5 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -6,12 +6,13 @@ on: pull_request: branches: [master, "release/*"] paths: + - ".actions/**" - ".github/workflows/code-checks.yml" - "requirements/**" - "src/**" - "pyproject.toml" # includes mypy config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/docs-checks.yml b/.github/workflows/docs-checks.yml index 98a14d70e792d..84f5f452c0656 100644 --- a/.github/workflows/docs-checks.yml +++ b/.github/workflows/docs-checks.yml @@ -10,12 +10,12 @@ on: branches: ["master", "release/*"] paths: - ".actions/**" + - ".github/workflows/docs-checks.yml" - "requirements/**" - "docs/**" - "src/**" - "setup.py" - "setup.cfg" # includes metadata used in the package creation - - ".github/workflows/docs-checks.yml" - "!*.md" - "!**/*.md" diff --git a/.github/workflows/tpu-tests.yml b/.github/workflows/tpu-tests.yml index 8f21eabee0ccf..f8c91a9b9edaa 100644 --- a/.github/workflows/tpu-tests.yml +++ b/.github/workflows/tpu-tests.yml @@ -7,6 +7,7 @@ on: branches: [master, "release/*"] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths: + - ".actions/**" - ".github/workflows/tpu-tests.yml" - "dockers/base-xla/*" - "requirements/lite/**" @@ -16,8 +17,7 @@ on: - "src/pytorch_lightning/**" - "tests/tests_pytorch/**" - "setup.cfg" # includes pytest config - - ".actions/**" - - "!requirements/**/docs.txt" + - "!requirements/*/docs.txt" - "!*.md" - "!**/*.md"