-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (46 loc) · 1.54 KB
/
buildcheck.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
name: Unit Tests
on: [push, pull_request]
jobs:
mixed_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.10.x
- name: Install dependencies
run: |
python -V
pip install pyyaml
pip install pytest
pip install anytree
pip install jinja2
pip install dacite
- name: Install ifex module
run: |
python setup.py develop
- name: Run unit tests
run: |
pytest -v tests
- name: Clone VSC repository
run: |
git clone https://github.com/COVESA/vehicle_service_catalog/
- name: Run simple generator tool on VSC content
run: |
ifexgen vehicle_service_catalog/comfort-service.yml -d simple
- name: Run DTDL template
run: |
ifexgen vehicle_service_catalog/comfort-service.yml -d dtdl > dtdl.out
- name: Run Protobuf template and verify output is correct Proto
run: |
sudo apt install -y protobuf-compiler
ifexgen vehicle_service_catalog/comfort-service.yml -d protobuf > comfort-service.proto
mkdir tmp
protoc --cpp_out=tmp comfort-service.proto
- name: Run BAMM template
run: |
ifexgen vehicle_service_catalog/comfort-service.yml -d sds-bamm > bamm.out
- name: Run D-Bus generator
run: |
ifexgen_dbus vehicle_service_catalog/comfort-service.yml >d-bus.out