Add a required job checker as an action (1/2) (#14363)

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This commit is contained in:
Carlos Mocholí 2022-08-24 01:07:05 +02:00 committed by GitHub
parent d8ba94b325
commit 2157a3b84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 13 deletions

View File

@ -1,4 +1,7 @@
custom_service_name: "Lightning CI required checker" custom_service_name: "Lightning CI required checker"
# For security reasons, configuration is only loaded from the repository's default branch,
# changes made in pull requests from different branches or forks are ignored. This means that changes to this file
# will only be used after they are merged.
subprojects: subprojects:
- id: "CI: CircleCI" - id: "CI: CircleCI"
paths: paths:
@ -6,15 +9,6 @@ subprojects:
checks: checks:
- "test-on-tpus" - "test-on-tpus"
- id: "CI: Azure"
paths:
- ".azure/**"
checks:
- "pytorch-lightning (GPUs)"
- "pytorch-lightning (GPUs) (testing PyTorch - stable)"
- "pytorch-lightning (HPUs)"
- "pytorch-lightning (IPUs)"
- id: "pytorch_lightning" - id: "pytorch_lightning"
paths: paths:
# all examples don't need to be added because they aren't used in CI, but these are # all examples don't need to be added because they aren't used in CI, but these are
@ -52,7 +46,6 @@ subprojects:
- "mypy" - "mypy"
- "PR Gatekeeper (pytorch)" - "PR Gatekeeper (pytorch)"
- "pytorch-lightning (GPUs)" - "pytorch-lightning (GPUs)"
- "pytorch-lightning (GPUs) (testing PyTorch - stable)"
- "pytorch-lightning (HPUs)" - "pytorch-lightning (HPUs)"
- "pytorch-lightning (IPUs)" - "pytorch-lightning (IPUs)"
- "slow (macOS-11, 3.7, 1.11)" - "slow (macOS-11, 3.7, 1.11)"
@ -60,6 +53,25 @@ subprojects:
- "slow (windows-2022, 3.7, 1.11)" - "slow (windows-2022, 3.7, 1.11)"
- "test-on-tpus" - "test-on-tpus"
- id: "pytorch_lightning: Azure GPU"
paths:
- ".azure/gpu-tests.yml"
- "tests/tests_pytorch/run_standalone_*.sh"
checks:
- "pytorch-lightning (GPUs)"
- id: "pytorch_lightning: Azure HPU"
paths:
- ".azure/hpu-tests.yml"
checks:
- "pytorch-lightning (HPUs)"
- id: "pytorch_lightning: Azure IPU"
paths:
- ".azure/ipu-tests.yml"
checks:
- "pytorch-lightning (IPUs)"
- id: "pytorch_lightning: Docs" - id: "pytorch_lightning: Docs"
paths: paths:
- "docs/source-pytorch/**" - "docs/source-pytorch/**"
@ -73,7 +85,6 @@ subprojects:
- id: "pytorch_lightning: Docker" - id: "pytorch_lightning: Docker"
paths: paths:
- "dockers/**" - "dockers/**"
- "!dockers/README.md"
- "requirements.txt" - "requirements.txt"
- "requirements/*.txt" - "requirements/*.txt"
- "requirements/pytorch/*" - "requirements/pytorch/*"
@ -108,12 +119,10 @@ subprojects:
- id: "lightning_app" - id: "lightning_app"
paths: paths:
- ".azure/app-cloud-e2e.yml"
- "requirements/app/**" - "requirements/app/**"
- "src/lightning_app/**" - "src/lightning_app/**"
- "tests/tests_app/**" - "tests/tests_app/**"
- "tests/tests_app_examples/**" - "tests/tests_app_examples/**"
- "tests/tests_clusters/**"
# the examples are used in the app CI # the examples are used in the app CI
- "examples/app_*" - "examples/app_*"
checks: checks:
@ -127,6 +136,12 @@ subprojects:
- "pytest (windows-2022, 3.8, latest)" - "pytest (windows-2022, 3.8, latest)"
- "pytest (windows-2022, 3.8, oldest)" - "pytest (windows-2022, 3.8, oldest)"
- id: "lightning_app: Azure"
paths:
- ".azure/app-cloud-e2e.yml"
checks:
- "App.cloud-e2e"
- id: "lightning_app: Docs" - id: "lightning_app: Docs"
paths: paths:
- "docs/source-app/**" - "docs/source-app/**"

View File

@ -0,0 +1,15 @@
name: Probot
on:
check_run: {}
pull_request: {}
issue_comment: {types: [created]}
jobs:
required-jobs:
runs-on: ubuntu-latest
if: github.event_name != 'issue_comment' || contains(github.event.comment.body, '@probot pls')
steps:
- uses: carmocca/probot@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}