Skip to content

fix: CI E261 at least two spaces before inline comment #5

fix: CI E261 at least two spaces before inline comment

fix: CI E261 at least two spaces before inline comment #5

Workflow file for this run

name: 'Make Test'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# We start with checking C++ formatting. No one gets free CPU cycles if they
# can't use clang-format.
check-formatting:
name: Check C++ Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gnuradio/clang-format-lint-action@v0.5-4
with:
source: '.'
exclude: './volk'
extensions: 'h,hpp,cpp,cc,cc.in'
check-python-formatting:
name: Check Python Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: quentinguidee/pep8-action@v1
with:
arguments: '--max-line-length=120 --ignore E265,E266,E402,E501,E704,E712,E713,E714,E711,E722,E741,W504,W605 --exclude *.yml.py'
# Doxygen gets built separately. It has a lot of output and its own weirdness.
doxygen:
name: Doxygen
runs-on: ubuntu-latest # This can run on whatever
container:
image: 'gnuradio/ci:ubuntu-20.04-3.9'
volumes:
- build_data:/build
steps:
- uses: actions/checkout@v2
name: Checkout Project
- name: CMake
run: 'cd /build && cmake ${GITHUB_WORKSPACE}'
- name: Make Docs
run: 'cd /build && make doxygen_target'
linux-docker:
# All of these shall depend on the formatting check (needs: check-formatting)
needs: [check-formatting, check-python-formatting]
runs-on: ubuntu-latest
# The GH default is 360 minutes (it's also the max as of Feb-2021). However
# we should fail sooner. The only reason to exceed this time is if a test
# hangs.
timeout-minutes: 120
strategy:
# Enabling fail-fast would kill all Dockers if one of them fails. We want
# maximum output.
fail-fast: false
matrix:
# For every distro we want to test here, add one key 'distro' with a
# descriptive name, and one key 'containerid' with the name of the
# container (i.e., what you want to docker-pull)
include:
- distro: 'Ubuntu 20.04'
containerid: 'gnuradio/ci:ubuntu-20.04-3.9'
cxxflags: -Werror -Wno-error=invalid-pch
ctest_args: '-E "qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_qtgui|metainfo_test"'
ldpath:
- distro: 'Fedora 34'
containerid: 'gnuradio/ci:fedora-34-3.9'
cxxflags: -Werror -Wno-error=invalid-pch -Wno-error=deprecated-declarations
ctest_args: '-E "qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_qtgui"'
ldpath: /usr/local/lib64/
- distro: 'Fedora 35'
containerid: 'gnuradio/ci:fedora-35-3.9'
cxxflags: -Werror -Wno-error=invalid-pch -Wno-error=deprecated-declarations
ctest_args: '-E "qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_qtgui"'
ldpath: /usr/local/lib64/
# - distro: 'CentOS 8.4'
# containerid: 'gnuradio/ci:centos-8.4-3.10'
# cxxflags: ''
# ctest_args: '-E "qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_qtgui"'
# ldpath: /usr/local/lib64/
- distro: 'Debian 11'
containerid: 'gnuradio/ci:debian-11-3.10'
cxxflags: -Werror -Wno-error=invalid-pch
ctest_args: '-E "qa_cpp_py_binding|qa_cpp_py_binding_set|qa_ctrlport_probes|qa_qtgui|qa_polar_..coder_(sc_)?systematic"'
ldpath:
name: ${{ matrix.distro }}
container:
image: ${{ matrix.containerid }}
volumes:
- build_data:/build
options: --cpus 2
steps:
- uses: actions/checkout@v2
name: Checkout Project
- name: CMake
env:
CXXFLAGS: ${{ matrix.cxxflags }}
run: 'cd /build && cmake ${GITHUB_WORKSPACE} -DENABLE_DOXYGEN=OFF'
- name: Make
run: 'cd /build && make -j2 -k'
- name: Make Test
run: 'cd /build && ctest --output-on-failure ${{ matrix.ctest_args }}'
- name: Make Install
run: |
cd /build
su -c "make install"
su -c "echo ${{matrix.ldpath}} >> /etc/ld.so.conf"
su -c ldconfig
- name: Test Python3
run: python3 -c "import gnuradio.blocks; print(gnuradio.blocks.complex_to_float())"
no-python:
# All of these shall depend on the formatting check (needs: check-formatting)
needs: [check-formatting, check-python-formatting]
runs-on: ubuntu-latest
# The GH default is 360 minutes (it's also the max as of Feb-2021). However
# we should fail sooner. The only reason to exceed this time is if a test
# hangs.
timeout-minutes: 120
name: C++ Only Build (Ubuntu 20.04)
container:
image: 'gnuradio/ci:ubuntu-20.04-3.9'
volumes:
- build_data:/build
options: --cpus 2
steps:
- uses: actions/checkout@v2
name: Checkout Project
- name: CMake
env:
CXXFLAGS: -Werror -Wno-error=invalid-pch
run: 'cd /build && cmake ${GITHUB_WORKSPACE} -DENABLE_DOXYGEN=OFF -DENABLE_PYTHON=OFF'
- name: Make
run: 'cd /build && make -j2 -k'
- name: Make Test
run: 'cd /build && ctest --output-on-failure'