-
Notifications
You must be signed in to change notification settings - Fork 38
122 lines (104 loc) · 3.44 KB
/
smoke_test.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Smoke test
on:
push:
branches:
- develop
- main
- master
pull_request:
jobs:
smoke_test_benchmark:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Setting up Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_ci.txt
python -m pip install -r requirements_frameworks.txt
- name: Run smoke tests for inference benchmark
run: cd tests/smoke_test/benchmark_smoke && python -m pytest test_benchmark_smoke.py -m="not caffe"
- name: Upload benchmark artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: benchmark_report
path: tests/smoke_test/benchmark_smoke/report.html
retention-days: 1
- name: Run smoke tests for accuracy checker
run: cd tests/smoke_test/ac_smoke && python -m pytest test_ac_smoke.py
- name: Upload accuracy artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: accuracy_report
path: tests/smoke_test/ac_smoke/report.html
retention-days: 1
smoke_test_benchmark_caffe:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Setting up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
activate-environment: caffe_env_3.7
python-version: 3.7
- name: Setting up Python dependencies and Caffe
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_ci.txt
python -m pip install openvino-dev
python -m pip install apache-tvm
conda install -y caffe
- name: Run smoke test for inference benchmark
shell: bash -el {0}
run: |
cd tests/smoke_test/benchmark_smoke && python -m pytest test_benchmark_smoke.py -m="caffe"
- name: Upload benchmark caffe artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: benchmark_caffe_results
path: tests/smoke_test/benchmark_smoke/report.html
retention-days: 1
smoke_test_quantization:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Setting up Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_ci.txt
python -m pip install -r requirements_frameworks.txt
- name: Run smoke tests for quantization
run: cd tests/smoke_test/quantization_smoke && python -m pytest test_quantization_smoke.py
- name: Upload quantization artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: benchmark_report
path: tests/smoke_test/quantization_smoke/report.html
retention-days: 1