-
Notifications
You must be signed in to change notification settings - Fork 16
85 lines (68 loc) · 2.23 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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/