forked from itlab-vision/dl-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.01 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
name: Smoke test
on:
push:
branches:
- develop
- main
- master
pull_request:
jobs:
smoke_test:
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.8
- name: Setting up Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements_frameworks.txt
- name: Run smoke test for inference benchmark
run: cd test/smoke_test && ./run_bench_smoke_test.sh
- name: Run smoke test for accuracy checker
run: cd test/smoke_test && ./run_ac_smoke_test.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: results
path: test/smoke_test/results*.csv
retention-days: 1
smoke_test_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 openvino-dev
conda install -y caffe
- name: Run smoke test for inference benchmark
shell: bash -el {0}
run: |
cd test/smoke_test && ./run_bench_smoke_test_caffe.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: results
path: test/smoke_test/results*.csv
retention-days: 1