Skip to content

Commit

Permalink
check for PR in draft or WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Thespica committed Aug 21, 2024
1 parent b8ac164 commit 9ac3fee
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flex-interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
jobs:
api-test:
runs-on: ubuntu-22.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gae.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
jobs:
build-gae:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
container:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.22.0
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gaia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:
jobs:
gaia-test:
runs-on: [self-hosted, manylinux2014]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# can `ssh localhost` without password, which may need to
# be configured manually when a new self-hosted runner is added.
runs-on: [self-hosted, manylinux2014]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:

helm-test:
runs-on: [self-hosted, ubuntu2004]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
needs: [gremlin-test]
env:
JAVA_HOME: /usr/lib/jvm/default-java
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:
jobs:
test-hqps-engine:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
container:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.23.0
steps:
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
test-build-flex:
runs-on: ubuntu-22.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}

strategy:
matrix:
Expand Down Expand Up @@ -402,7 +402,7 @@ jobs:
# test the different combination of cmake options: -DBUILD_TEST=ON/OFF, -DBUILD_ODPS_FRAGMENT_LOADER=ON/OFF
test-cmake-options:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
container:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.23.0
strategy:
Expand All @@ -423,7 +423,7 @@ jobs:
test-AOCC-compilation:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
container:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.23.0
steps:
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:
test-flex:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
container:
image: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.23.0
steps:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/k8s-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
build-analytical:
runs-on: [self-hosted, manylinux2014]
needs: [changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
build-interactive:
runs-on: [self-hosted, manylinux2014]
needs: [changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -303,7 +303,7 @@ jobs:
build-learning:
runs-on: [self-hosted, manylinux2014]
needs: [changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:

k8s-test:
runs-on: [self-hosted, ubuntu2004]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
needs: [build-analytical, build-interactive, build-learning]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
gie-test:
runs-on: [self-hosted, ubuntu2004]
needs: [build-analytical, build-interactive, build-learning]
if: ${{ needs.changes.outputs.gie-function-test == 'true' && github.repository == 'alibaba/GraphScope' }}
if: ${{ needs.changes.outputs.gie-function-test == 'true' && github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -617,7 +617,7 @@ jobs:
# Require the user id of the self-hosted is 1001, which may need to be
# configured manually when a new self-hosted runner is added.
runs-on: [self-hosted, manylinux2014]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -664,7 +664,7 @@ jobs:
gie-k8s-failover-test:
needs: [build-gie-experimental]
runs-on: [self-hosted, ubuntu2004]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/local-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
# Set job outputs to values from filter step
outputs:
gae-python: ${{ steps.filter.outputs.gae-python }}
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
# configured manually when a new self-hosted runner is added.
runs-on: [self-hosted, ubuntu2004]
needs: [changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:

mini-test:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
needs: [build-wheels]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
python-unittest:
runs-on: ubuntu-20.04
needs: [build-wheels, changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
defaults:
run:
shell: bash --noprofile --norc -eo pipefail {0}
Expand Down Expand Up @@ -400,7 +400,7 @@ jobs:
networkx-basic-test:
runs-on: ubuntu-20.04
needs: [build-wheels, changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
defaults:
run:
shell: bash
Expand Down Expand Up @@ -492,7 +492,7 @@ jobs:
networkx-algo-and-generator-test:
runs-on: ubuntu-20.04
needs: [build-wheels, changes]
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
strategy:
matrix:
deployment: ["standalone", "distributed"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pegasus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:
pegasus-build:
runs-on: ubuntu-20.04
if: ${{ github.repository == 'alibaba/GraphScope' }}
if: ${{ github.repository == 'alibaba/GraphScope' && !github.event.pull_request.draft && !contains(github.event.pull_request.title, 'WIP') }}
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 9ac3fee

Please sign in to comment.