From c1224277d07f2113399755120356c1c276eea3f1 Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:13:59 -0400 Subject: [PATCH] Skip CI for draft PRs --- .github/workflows/flepicommon-ci.yml | 1 + .github/workflows/gempyor-ci.yml | 1 + .github/workflows/inference-ci.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flepicommon-ci.yml b/.github/workflows/flepicommon-ci.yml index 9f8abc089..6f9613fd7 100644 --- a/.github/workflows/flepicommon-ci.yml +++ b/.github/workflows/flepicommon-ci.yml @@ -16,6 +16,7 @@ on: jobs: tests: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false strategy: matrix: R-version: ["4.3.3"] diff --git a/.github/workflows/gempyor-ci.yml b/.github/workflows/gempyor-ci.yml index e2637f1af..6ef20ce74 100644 --- a/.github/workflows/gempyor-ci.yml +++ b/.github/workflows/gempyor-ci.yml @@ -18,6 +18,7 @@ on: jobs: tests: runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false strategy: matrix: python-version: ["3.10", "3.11"] diff --git a/.github/workflows/inference-ci.yml b/.github/workflows/inference-ci.yml index d80a2e735..35e4d379e 100644 --- a/.github/workflows/inference-ci.yml +++ b/.github/workflows/inference-ci.yml @@ -20,7 +20,7 @@ on: jobs: tests: runs-on: ubuntu-latest - if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} + if: (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) strategy: matrix: R-version: ["4.3.3"]