-
-
Notifications
You must be signed in to change notification settings - Fork 334
157 lines (152 loc) · 7.95 KB
/
valgrind.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: Run Valgrind
on: [push, pull_request]
jobs:
RunValgrind:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-20.04]
steps:
# compile and prepare env
- name: Clone Repository
uses: actions/checkout@v2
- name: Setup Cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.16.x'
- name: Install Dependencies
run: |
sudo -H apt-get update -y
sudo -H apt-get install -y libbluetooth-dev
env:
DEBIAN_FRONTEND: noninteractive
- name: Compile BrainFlow
run: |
mkdir $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake -DBUILD_BLUETOOTH=ON -DBUILD_ONNX=ON -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/installed -DCMAKE_BUILD_TYPE=Debug ..
make
make install
- name: Build Get Data Test
run: |
cd $GITHUB_WORKSPACE/cpp_package/examples/get_data
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/installed -DCMAKE_BUILD_TYPE=Debug ..
make
- name: Build Signal Processing Test
run: |
cd $GITHUB_WORKSPACE/cpp_package/examples/signal_processing
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/installed -DCMAKE_BUILD_TYPE=Debug ..
make
- name: Build ML Demo Test
run: |
cd $GITHUB_WORKSPACE/cpp_package/examples/ml
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/installed -DCMAKE_BUILD_TYPE=Debug ..
make
- name: Install Valgrind
run: |
sudo -H apt-get update -y
sudo -H apt-get install -y valgrind
env:
DEBIAN_FRONTEND: noninteractive
- name: Install Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.7.7'
architecture: 'x64'
- name: Install Python Dependencies
run: |
sudo -H apt-get update -y
sudo -H apt-get install -y python3-setuptools python3-pygments
env:
DEBIAN_FRONTEND: noninteractive
- name: Install Emulator
run: |
cd $GITHUB_WORKSPACE/emulator
sudo -H python3 -m pip install -U .
- name: Install Python test Dependencies
run: sudo -H python3 -m pip install -r $GITHUB_WORKSPACE/python_package/examples/tests/requirements.txt
- name: Setup Python Package
run: |
cd $GITHUB_WORKSPACE/python_package
sudo -H python3 -m pip install -U .
# start testing
- name: Cyton Cpp
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/cyton_linux.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/brainflow_get_data --board-id 0 --serial-port
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Synthetic Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/brainflow_get_data --board-id -1
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Twice
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/get_data_twice
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Galea Cpp
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/galea_udp.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/brainflow_get_data --board-id 3 --ip-address 127.0.0.1
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Streaming Cpp
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/streaming_board_emulator.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/brainflow_get_data --board-id -2 --ip-address 225.1.1.1 --ip-port 6677 --master-board -1
- name: Streaming Cpp Two Presets
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/streaming_board_emulator.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/brainflow_get_data --board-id -2 --ip-address 225.1.1.1 --ip-port 6677 --master-board -1 --ip-address-aux 225.1.1.1 --ip-port-aux 6678
- name: Cyton Cpp Markers
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/cyton_linux.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/markers --board-id 0 --serial-port
- name: Synthetic Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/markers --board-id -1
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Galea Cpp Markers
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/galea_udp.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/markers --board-id 3 --ip-address 127.0.0.1
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Streaming Cpp Markers
run: sudo -H python3 $GITHUB_WORKSPACE/emulator/brainflow_emulator/streaming_board_emulator.py valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/get_data/build/markers --board-id -2 --ip-address 225.1.1.1 --ip-port 6677 --master-board -1
- name: Denoising Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/denoising
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Downsampling Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/downsampling
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Peaks Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/peaks_detection
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: CSP Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/csp
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Windowing Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/windowing
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Filters Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/signal_filtering
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Serialization Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/serialization
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: Transforms Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/transforms
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: BandPower Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/band_power
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib
- name: ICA Cpp
run: valgrind --error-exitcode=1 --track-origins=yes --leak-check=full $GITHUB_WORKSPACE/cpp_package/examples/signal_processing/build/ica
env:
LD_LIBRARY_PATH: $GITHUB_WORKSPACE/installed/lib