Updated testing and LDPC H matrix generation #210
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: hermespy | |
# Execute tests if pushed to any branch | |
on: [push, pull_request] | |
env: | |
HERMES_QUADRIGA: ${{ github.workspace }}/submodules/quadriga/quadriga_src | |
jobs: | |
Testing: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest] | |
name: Test on ${{ matrix.runs-on }} | |
steps: | |
- name: Checkout full repository | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt-get install -y build-essential octave portaudio19-dev python-dev-is-python3 | |
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)" | |
pip install -e .[develop,test,quadriga,uhd,audio,sionna,scapy] | |
- name: Run unit tests | |
run: | | |
coverage run --include=hermespy/* ./tests/test_install.py ./tests/unit_tests/ | |
coverage xml | |
coverage report -m --include=hermespy/* --skip-covered | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: coverage.xml | |
badge: true | |
fail_below_min: true | |
format: markdown | |
hide_branch_rate: false | |
hide_complexity: true | |
indicators: true | |
output: both | |
thresholds: '60 80' | |
Documentation: | |
needs: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Setup python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
# Note: Sionna dependencies crash with hermespy[documentation] due to outdated ipywidgets requirement on Sionna's side | |
- name: Install doc dependencies | |
run: | | |
sudo apt update | |
sudo apt-get install -y build-essential octave portaudio19-dev python-dev-is-python3 pandoc graphviz | |
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)" | |
pip install -e .[test,documentation,quadriga,uhd,audio] | |
- name: Build documentation | |
run: sphinx-build docssource/ documentation/ |