-
Notifications
You must be signed in to change notification settings - Fork 184
61 lines (56 loc) · 1.69 KB
/
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
name: github/unit-test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
unit-test:
name: Execute C unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Install Dependencies
run: sudo apt install gcc libcmocka-dev
- name: Build
run: make -C unit-test
- name: Execute
run: make -C unit-test run
python:
name: Execute python wrapper unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
with:
python-version: '3.x'
- name: Install Dependencies
run: |
sudo apt install gcc
python -m pip install --upgrade pip
pip install pipenv
make -C lib/python setup-dev
- name: Build
run: make -C lib
- name: Execute
run: LD_LIBRARY_PATH=`pwd`/lib make -C lib/python test
appqos:
name: Execute App QoS unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
with:
python-version: '3.x'
- name: Install Dependencies
run: |
sudo apt install gcc
python -m pip install --upgrade pip
pip install pipenv
make -C appqos setup-dev
- name: Build
run: make -C lib
- name: Execute
run: LD_LIBRARY_PATH=`pwd`/lib make -C appqos test