Skip to content

Commit

Permalink
gh-233: don't run workflows on draft PRs (#254)
Browse files Browse the repository at this point in the history
Draft PRs no longer trigger the test actions.

Closes: #233
  • Loading branch information
Saransh-cpp authored Sep 23, 2024
1 parent 09bef8a commit 0293646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:
jobs:
test-examples:
name: Test examples
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@ 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

tests:
name: Tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -42,6 +35,7 @@ jobs:

build:
name: Build
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -51,6 +45,7 @@ jobs:

docs:
name: Docs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 0293646

Please sign in to comment.