Skip to content

Commit 256d25f

Browse files
authored
Avoid running tests on draft PRs (#2890)
1 parent eb0532a commit 256d25f

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on: # yamllint disable-line rule:truthy
77

88
jobs:
99
pre-commit:
10+
if: github.event.pull_request.draft == false
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v2

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on: # yamllint disable-line rule:truthy
1010

1111
jobs:
1212
tests:
13+
if: github.event.pull_request.draft == false
1314
name: Tests
1415
runs-on: ubuntu-latest
1516
strategy:

.github/workflows/verify-docs-gen.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on: # yamllint disable-line rule:truthy
88

99
jobs:
1010
docs:
11+
if: github.event.pull_request.draft == false
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)