-
Notifications
You must be signed in to change notification settings - Fork 111
66 lines (59 loc) · 1.62 KB
/
build.yml
File metadata and controls
66 lines (59 loc) · 1.62 KB
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
# Config file for automatic testing using github actions
name: Unit_Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
verify-python:
name: Python code verification (src)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
make set-dev
python -m pip install scapy==2.4.5
- name: Verify code (python w/black)
run: |
make format-check
- name: Run pytests (utests/tests)
run: |
make coverage
- name: Check coverage (src/)
run: |
make coverage-check
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Dependencies
run: |
sudo apt-get install python-dev
sudo apt-get install python-pip
sudo apt-get install cmake
sudo apt-get install libffi-dev
sudo apt-get install python3-dev
sudo apt-get install python3-pip
sudo apt-get install ethtool
sudo pip install setuptools
sudo pip install scapy
sudo pip3 install setuptools
sudo pip3 install nose2 scapy
bash CI/travis/install-nanomsg.sh
sudo ldconfig
bash CI/travis/install-nnpy.sh
- name: Install
run: |
sudo python setup.py install
- name: Before_script
run: |
cd ptf_nn/; sudo ./veth_setup.sh; cd ..
- name: Script
run: |
python CI/travis/check-nnpy.py
./CI/travis/run_tests.sh
sudo python3 /usr/local/bin/nose2 utests.tests.test