waterfall responsiveness improvements #2727
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Test | |
on: [push, pull_request] | |
jobs: | |
ci-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
version: 1.4.2 | |
- name: Get dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \ | |
build-essential \ | |
cmake \ | |
g++ \ | |
gcc \ | |
git \ | |
libboost-all-dev \ | |
libev-dev \ | |
libopencv-dev \ | |
libuhd-dev \ | |
libunwind-dev \ | |
make \ | |
pkg-config \ | |
software-properties-common \ | |
sox \ | |
uhd-host \ | |
wget \ | |
&& grep -h 'git clone' docker/*|grep -v pytorch|sed -E 's/RUN\s+git clone\s+//g'|sort|uniq|xargs -L1 git clone | |
- name: install gnuradio | |
run: | | |
sudo add-apt-repository ppa:gnuradio/gnuradio-releases && sudo apt-get update && \ | |
sudo apt-get install -y --no-install-recommends gnuradio-dev python3-packaging | |
- name: Install dependencies | |
run: | | |
for repodir in flatbuffers json libsigmf gr-iqtlabs ; do \ | |
mkdir -p ${repodir}/build && cd ${repodir}/build && \ | |
cmake -DUSE_SYSTEM_JSON=ON -DUSE_SYSTEM_FLATBUFFERS=ON .. && make -j "$(nproc)" && sudo make install && cd ../.. ; \ | |
done && \ | |
sudo ldconfig -v && \ | |
poetry config virtualenvs.create false && \ | |
poetry install --no-interaction -C gamutrflib && \ | |
poetry install --no-interaction -C gamutrfwaterfall && \ | |
poetry install --no-interaction -C utils/mavlink-api && \ | |
poetry install --no-interaction && \ | |
sudo dpkg -r --force-depends python3-numpy | |
- name: Code Quality - Black | |
run: | | |
poetry run black augment --check | |
poetry run black gamutrf --check | |
poetry run black gamutrflib --check | |
poetry run black gamutrfwaterfall --check | |
poetry run black torchserve --check | |
poetry run black utils --check | |
- name: Code Quality - Pylint | |
run: | | |
poetry run pylint --fail-under=6 gamutrf/ gamutrflib/ gamutrfwaterfall/ | |
- name: Code Quality - Pytype | |
env: | |
PYTHONPATH: /usr/local/lib/python3.10/dist-packages:/usr/lib/python3/dist-packages | |
run: | | |
sudo pip3 install pytype=="$(grep -E "pytype = " pyproject.toml | grep -Eo "[0-9\.]+")" && \ | |
sudo pip3 install -U pyserial && \ | |
pytype -k gamutrf/ && \ | |
pytype -k gamutrflib/ && \ | |
pytype -k utils/mavlink-api | |
- name: Test with pytest | |
env: | |
PYTHONPATH: /usr/local/lib/python3.10/dist-packages:/usr/lib/python3/dist-packages | |
run: | | |
poetry run pytest --cov-report term-missing --cov=. --cov-report=xml tests/ gamutrfwaterfall/tests | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.xml | |
verbose: false # optional (default = false) | |
fail_ci_if_error: false | |
if: github.repository == 'iqtlabs/gamutrf' |