Skip to content

Commit 60707d7

Browse files
committed
Do not run pipelines on draft PRs
1 parent ee0b361 commit 60707d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build_and_test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020

2121
jobs:
2222
test-with-coverage:
23+
if: github.event.pull_request.draft == false
2324
runs-on: ubuntu-20.04
2425
steps:
2526
- uses: actions/checkout@v3
@@ -47,6 +48,7 @@ jobs:
4748
fail_ci_if_error: false
4849

4950
linux-conda-test:
51+
if: github.event.pull_request.draft == false
5052
runs-on: ubuntu-22.04
5153
steps:
5254
- uses: actions/checkout@v3
@@ -71,6 +73,7 @@ jobs:
7173
RUSTFLAGS=-Zsanitizer=leak cargo +nightly test
7274
7375
linux-bundled-test:
76+
if: github.event.pull_request.draft == false
7477
runs-on: ubuntu-latest
7578
steps:
7679
- uses: actions/checkout@v3
@@ -81,6 +84,7 @@ jobs:
8184
8285
8386
windows-test:
87+
if: github.event.pull_request.draft == false
8488
env:
8589
SCIPOPTDIR: C:\scipoptdir
8690
runs-on: windows-latest
@@ -105,6 +109,7 @@ jobs:
105109
cargo test --examples
106110
107111
cargo-fmt-check:
112+
if: github.event.pull_request.draft == false
108113
runs-on: ubuntu-latest
109114
steps:
110115
- uses: actions/checkout@v3
@@ -117,6 +122,7 @@ jobs:
117122
run: cargo fmt --all -- --check
118123

119124
cargo-clippy:
125+
if: github.event.pull_request.draft == false
120126
runs-on: ubuntu-latest
121127
steps:
122128
- uses: actions/checkout@v3
@@ -130,6 +136,7 @@ jobs:
130136
run: cargo clippy --all-features --all-targets -- -D warnings
131137

132138
semver-check:
139+
if: github.event.pull_request.draft == false
133140
runs-on: ubuntu-latest
134141
steps:
135142
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)