-
Notifications
You must be signed in to change notification settings - Fork 16
89 lines (81 loc) · 2.09 KB
/
Copy pathci.yml
File metadata and controls
89 lines (81 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [master]
pull_request:
jobs:
format:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./ci/requires-style.txt
python3 -m pip install -q megengine==1.8.1 -f https://megengine.org.cn/whl/mge.html
- name: check format
run: ./ci/run_format_check.sh
- name: lint
run: ./ci/lint.sh
pytest-caffe-and-onnx:
runs-on: ubuntu-20.04
container:
image: enginesh233/mgeconvert_ci:v1.1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: test caffe and onnx
run: ./ci/pytest_caffe_and_onnx.sh
pytest-tflite:
runs-on: ubuntu-20.04
container:
image: enginesh233/mgeconvert_ci:v1.1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: test tflite
run: ./ci/pytest_tflite.sh
pytest-torchscript:
runs-on: ubuntu-20.04
container:
image: enginesh233/mgeconvert_ci:v1.1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: test torchscipt
run: ./ci/pytest_torchscript.sh
pytest-transform:
runs-on: ubuntu-latest
container:
image: enginesh233/mgeconvert_ci:v1.1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: test transform
run: ./ci/pytest_transform.sh
test-convert-cmd:
runs-on: ubuntu-20.04
container:
image: enginesh233/mgeconvert_ci:v1.1
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: test convert cmd
run: ./ci/test_convert_cmd.sh