-
Notifications
You must be signed in to change notification settings - Fork 134
36 lines (35 loc) · 1.12 KB
/
code_quality.yaml
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
name: Integration tests
on: push
jobs:
Code-generation-tests:
runs-on: xps-runner
strategy:
fail-fast: false
matrix:
target: [detection_fpn, vww, vww_patchedbased, tiny_training, mcunetv2_se_large]
name: Code generation
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Python setup
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install tinyengine
run: |
python setup.py install
git submodule update --init --recursive
- name: Generate code for detection
run: |
sh tests/examples/${{ matrix.target }}.sh
unzip tests/examples/assets/${{ matrix.target }}/codegen.zip -d tests/examples/assets/${{ matrix.target }}/
- id: diff-person-detection
run: |
diff -r codegen/ tests/examples/assets/${{ matrix.target }}/codegen/
- uses: nick-fields/assert-action@v1
with:
expected: ''
actual: ${{ steps.diff-person-detection.outputs.value }}
- name: clean up
run: |
rm -rf codegen