From fa09ac8428c786b63457e931e869264b8d73b11e Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Thu, 19 Sep 2024 15:10:47 +0100 Subject: [PATCH] gh-233: don't run workflows on draft PRs --- .github/workflows/examples.yml | 1 + .github/workflows/test.yml | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index fd7ab91e..b18d21b5 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -17,6 +17,7 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: + if: github.event.pull_request.draft == false test-examples: name: Test examples runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9319cbb2..cba0c2aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,14 +13,7 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: - # TODO: replace with a more general pre-commit linter - # style: - # name: Style - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - # - run: pipx run flake8 glass - + if: github.event.pull_request.draft == false tests: name: Tests runs-on: ubuntu-latest