未验证 提交 2d2b12c5 编写于 作者: S Shenghang Tsai 提交者: GitHub

CI run when bot is requested review (#3831)

* run ci when add label need_ci

* change name

* request review from bot

* add reveiw from bot for fmt

* use bot name oneflow-ci-bot
上级 3ce5e436
name: Build and Test CI name: Build and Test CI
on: on:
pull_request: pull_request:
types: [synchronize, opened, reopened, ready_for_review] types: [review_requested]
branches: branches:
- '*' - '*'
paths-ignore: paths-ignore:
...@@ -17,7 +17,7 @@ jobs: ...@@ -17,7 +17,7 @@ jobs:
check_license_and_format: check_license_and_format:
name: License and format name: License and format
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Check license and format (please run 'make of_format' if failed) - name: Check license and format (please run 'make of_format' if failed)
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
mirror_third_party: mirror_third_party:
name: Mirror third party dependencies name: Mirror third party dependencies
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.base_ref == 'master' if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Mirror dependencies to aliyun - name: Mirror dependencies to aliyun
...@@ -42,7 +42,7 @@ jobs: ...@@ -42,7 +42,7 @@ jobs:
needs: [check_license_and_format, mirror_third_party] needs: [check_license_and_format, mirror_third_party]
name: CUDA name: CUDA
runs-on: [self-hosted, linux, gpu] runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false && github.base_ref == 'master' if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
env: env:
ci_tmp_dir: /home/ci-user/ci-tmp ci_tmp_dir: /home/ci-user/ci-tmp
wheelhouse_dir: "/home/ci-user/ci-tmp/wheelhouse" wheelhouse_dir: "/home/ci-user/ci-tmp/wheelhouse"
...@@ -123,7 +123,7 @@ jobs: ...@@ -123,7 +123,7 @@ jobs:
needs: [check_license_and_format, build_and_test_cuda, mirror_third_party] needs: [check_license_and_format, build_and_test_cuda, mirror_third_party]
name: XLA name: XLA
runs-on: [self-hosted, linux, gpu] runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false && github.base_ref == 'master' if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
env: env:
ci_tmp_dir: /home/ci-user/ci-tmp-xla ci_tmp_dir: /home/ci-user/ci-tmp-xla
wheelhouse_dir: "/home/ci-user/ci-tmp-xla/wheelhouse" wheelhouse_dir: "/home/ci-user/ci-tmp-xla/wheelhouse"
...@@ -159,7 +159,7 @@ jobs: ...@@ -159,7 +159,7 @@ jobs:
needs: [check_license_and_format, build_and_test_cuda] needs: [check_license_and_format, build_and_test_cuda]
name: CPU-only name: CPU-only
runs-on: [self-hosted, linux, gpu] runs-on: [self-hosted, linux, gpu]
if: github.event.pull_request.draft == false && github.base_ref == 'master' if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
env: env:
ci_tmp_dir: /home/ci-user/ci-tmp-cpu ci_tmp_dir: /home/ci-user/ci-tmp-cpu
wheelhouse_dir: "/home/ci-user/ci-tmp-cpu/wheelhouse" wheelhouse_dir: "/home/ci-user/ci-tmp-cpu/wheelhouse"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册