提交 b8ea6392 编写于 作者: H huangxinda

ci(mge): merge try-import automatically

上级 3b452d8c
name: CI CPU
on:
push:
branches: [master, try-import]
pull_request:
jobs:
cpu-test:
runs-on: self-hosted
container:
image: localhost:5000/megengine-ci:latest
steps:
- name: Checkout MegEngine
uses: actions/checkout@v2
- name: Checkout submodules
run: |
./third_party/prepare.sh
./third_party/install-mkl.sh
- name: Build MegEngine
run: ./ci/cmake.sh cpu
- name: Python test
run: ./ci/run_python_test.sh cpu
- name: C++ test
run: ./ci/run_cpp_test.sh cpu
name: CI GPU
name: CI
on:
push:
branches: [master, try-import]
pull_request:
jobs:
cpu-test:
runs-on: self-hosted
container:
image: localhost:5000/megengine-ci:latest
steps:
- name: Checkout MegEngine
uses: actions/checkout@v2
- name: Checkout submodules
run: |
./third_party/prepare.sh
./third_party/install-mkl.sh
- name: Build MegEngine
run: ./ci/cmake.sh cpu
- name: Python test
run: ./ci/run_python_test.sh cpu
- name: C++ test
run: ./ci/run_cpp_test.sh cpu
gpu-test:
runs-on: self-hosted
container:
......@@ -15,7 +32,6 @@ jobs:
options: --gpus all --shm-size 1g
env:
NCCL_LAUNCH_MODE: PARALLEL
steps:
- name: Checkout MegEngine
uses: actions/checkout@v2
......@@ -29,3 +45,20 @@ jobs:
run: ./ci/run_python_test.sh cuda
- name: C++ test
run: ./ci/run_cpp_test.sh cuda
auto-merge:
if: ${{ github.ref == 'refs/heads/try-import' }}
runs-on: ubuntu-latest
needs: [cpu-test, gpu-test]
steps:
- name: Checkout MegEngine
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Merge with master
run: |
git config user.name "megvii-mge"
git config user.email "megengine@megvii.com"
git fetch origin master
git checkout -b master origin/master
git rebase try-import
git push
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册