Skip to content

Commit

Permalink
gh-233: don't run workflows on draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Sep 19, 2024
1 parent 30f86a6 commit fa09ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -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
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa09ac8

Please sign in to comment.