2023-11-20 14:27:56 +00:00
|
|
|
name: Modem tests
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# The CMake configure and build commands are platform-agnostic and should work equally
|
|
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
|
|
# cross-platform coverage.
|
|
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
# By default, GitHub will maximize the number of jobs run in parallel
|
|
|
|
# depending on the available runners on GitHub-hosted virtual machines.
|
|
|
|
# max-parallel: 8
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-12-01 09:18:12 +00:00
|
|
|
#- python-version: "3.7" EOL
|
2023-11-20 14:27:56 +00:00
|
|
|
- python-version: "3.8"
|
|
|
|
- python-version: "3.9"
|
|
|
|
- python-version: "3.10"
|
|
|
|
- python-version: "3.11"
|
2023-12-01 09:21:57 +00:00
|
|
|
#- python-version: "3.12" NOT YET SUPPORTED BY NUITKA!
|
2023-11-20 14:27:56 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install system packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-11-20 14:31:33 +00:00
|
|
|
sudo apt-get update || true
|
2023-11-20 14:33:26 +00:00
|
|
|
sudo apt-get install octave octave-common octave-signal sox portaudio19-dev
|
2023-11-20 14:27:56 +00:00
|
|
|
|
|
|
|
- name: Install python packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-11-20 14:31:33 +00:00
|
|
|
pip3 install -r requirements.txt
|
2023-11-20 14:27:56 +00:00
|
|
|
|
|
|
|
- name: Build codec2
|
|
|
|
shell: bash
|
|
|
|
working-directory: modem/lib/
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/drowe67/codec2.git
|
|
|
|
cd codec2
|
|
|
|
mkdir -p build_linux && cd build_linux && cmake .. && make
|
|
|
|
|
2023-11-20 15:02:13 +00:00
|
|
|
- name: run config tests
|
2023-11-20 14:27:56 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-12-01 09:01:31 +00:00
|
|
|
python -m unittest discover tests
|