From 0d16d70d874517fa82d61eb7fbc7f6ccf5ea4c1e Mon Sep 17 00:00:00 2001 From: Aditya Sharad Date: Wed, 27 Jul 2022 12:31:35 -0700 Subject: [PATCH 1/2] CI: Add path filters to python-deps workflow No need to run this workflow on all PRs, only those that change the Python dependency installation mechanism. --- .github/workflows/python-deps.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index 28efa81053..ae4f8bc427 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -7,6 +7,13 @@ on: # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened # by other workflows. types: [opened, synchronize, reopened, ready_for_review] + paths: + # Changes to this workflow. + - '.github/workflows/python-deps.yml' + # Changes to the Python package installation scripts and their tests. + - 'python-setup/**' + # Changes to the default CodeQL bundle version. + - '**/defaults.json' jobs: test-setup-python-scripts: From bf24993f0c23fbdd8dcabc3a8141f3dec5103134 Mon Sep 17 00:00:00 2001 From: Aditya Sharad Date: Wed, 27 Jul 2022 13:22:10 -0700 Subject: [PATCH 2/2] CI: Add scheduled and manual triggers to python-deps workflow --- .github/workflows/python-deps.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index ae4f8bc427..4a9ecbac0d 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -14,6 +14,10 @@ on: - 'python-setup/**' # Changes to the default CodeQL bundle version. - '**/defaults.json' + schedule: + # Weekly on Monday. + - cron: '0 0 * * 1' + workflow_dispatch: jobs: test-setup-python-scripts: