Skip to content

Commit 2332291

Browse files
CI: add github runner action for code checks (lint, build, test)
1 parent 2a4a97f commit 2332291

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: code checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
lint:
11+
name: lint Python files
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: install flake8
15+
run: pipx install flake8
16+
- name: checkout
17+
uses: actions/checkout@v4
18+
- name: run flake8
19+
run: flake8 --exclude 'bindings' python/wisun
20+
21+
build_and_test:
22+
name: build & test
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: checkout
26+
uses: actions/checkout@v4
27+
- name: install dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install -y \
31+
build-essential \
32+
cmake \
33+
doxygen \
34+
git \
35+
gnuradio \
36+
gnuradio-dev
37+
- name: build
38+
run: |
39+
mkdir build
40+
cd build
41+
cmake ..
42+
make
43+
- name: run tests
44+
run: |
45+
cd build
46+
make TEST_ARGS="--output-on-failure" test

0 commit comments

Comments
 (0)