-
daquexian authored
* add speed test in ci Signed-off-by:
daquexian <daquexian566@gmail.com> * use actions/checkout@v2 Signed-off-by:
daquexian <daquexian566@gmail.com> * add more input size Signed-off-by:
daquexian <daquexian566@gmail.com> * fix arg order Signed-off-by:
daquexian <daquexian566@gmail.com> * update test.yml to use oneflow-inc/models master Signed-off-by:
daquexian <daquexian566@gmail.com> * only clone models repo in cuda_new_interface Signed-off-by:
daquexian <daquexian566@gmail.com> * update test_speed.sh to check rel speed Signed-off-by:
daquexian <daquexian566@gmail.com> * update yml and test_speed.sh to post speed stats Signed-off-by:
daquexian <daquexian566@gmail.com> * escpae newline for github actions Signed-off-by:
daquexian <daquexian566@gmail.com> * use correct escaping Signed-off-by:
daquexian <daquexian566@gmail.com> * replace '\n' to \n in js Signed-off-by:
daquexian <daquexian566@gmail.com> * collapse speed stats Signed-off-by:
daquexian <daquexian566@gmail.com> * fix comments Signed-off-by:
daquexian <daquexian566@gmail.com> * set fixed commit and refine msg Signed-off-by:
daquexian <daquexian566@gmail.com> * test 30 times instead of 20, relax the threshold Signed-off-by:
daquexian <daquexian566@gmail.com> * update oneflow-models Signed-off-by:
daquexian <daquexian566@gmail.com> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Unverified77755951
test.yml 30.47 KiB
name: Build and Test CI
on:
pull_request:
types: [review_requested]
branches:
- "*"
workflow_dispatch:
inputs:
placeholder:
description: "placeholder, no effect"
required: false
jobs:
cancel_previous:
name: Cancel previous runs
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs of outdated commit
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
all_but_latest: true
mirror_third_party:
name: Mirror third party dependencies
runs-on: ubuntu-18.04
if: github.event.pull_request.draft == false && github.base_ref == 'master' && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
steps:
- uses: actions/checkout@v2
- name: Mirror dependencies to aliyun
env:
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
run: |
set -x
if [ -z "$OSS_ACCESS_KEY_ID" ]
then
exit 0
fi
python3 -m pip install -U pip setuptools wheel
python3 -m pip install oss2
python3 tools/package_mirror.py -i cmake
check_license_and_format:
name: License and format
runs-on: ubuntu-18.04
if: github.event.pull_request.draft == false && contains(github.event.pull_request.requested_reviewers.*.login, 'oneflow-ci-bot')
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Check license
id: license_check
run: |
python3 ci/check/run_license_format.py -i oneflow -c
- name: Add license
id: license_fmt
if: ${{ failure() }}
run: |
python3 ci/check/run_license_format.py -i oneflow --fix
- name: Check C++/CUDA format
id: cpp_check
run: |
python3 ci/check/run_clang_format.py --clang_format_binary clang-format --source_dir oneflow
- name: Run C++/CUDA format
id: cpp_fmt
if: ${{ failure() }}
run: |
python3 ci/check/run_clang_format.py --clang_format_binary clang-format --source_dir oneflow --fix
- name: Check Python format