Skip to content

Commit

Permalink
ci: Add GitHub action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemel committed Jul 10, 2020
1 parent db2fe6a commit d4fa909
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run CI tests

on: [push, pull_request]

jobs:
build-ubuntu:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
- name: Add GNU Radio PPA
run: sudo add-apt-repository ppa:gnuradio/gnuradio-master && sudo apt update
- name: dependencies
run: sudo apt install gnuradio python3-uhd python3-pybind11 liborc-0.4-dev && sudo pip3 install scikit-commpy
- name: configure
run: mkdir build && cd build && cmake -DCMAKE_CXX_FLAGS="-Werror" ..
- name: build
run: cmake --build build
- name: test
run: cd build && ctest -V
2 changes: 1 addition & 1 deletion python/qa_extract_burst_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_001_t(self):
tag.key = pmt.string_to_symbol(tag_key)
tag.offset = burst_len + i * (burst_len + gap_len)
tag.srcid = pmt.string_to_symbol('qa')
tag.value = pmt.PMT_T
tag.value = pmt.make_dict()
tags.append(tag)
data = np.concatenate((data, frame, np.zeros(gap_len)))
# print(np.reshape(data, (-1, burst_len)))
Expand Down

0 comments on commit d4fa909

Please sign in to comment.