2022-11-20 12:38:21 +00:00
|
|
|
name: CTest
|
|
|
|
|
|
|
|
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:
|
|
|
|
- python-version: "3.7"
|
|
|
|
- python-version: "3.8"
|
|
|
|
- python-version: "3.9"
|
|
|
|
- python-version: "3.10"
|
|
|
|
- python-version: "3.11"
|
2023-02-09 17:27:06 +00:00
|
|
|
#- python-version: "3.12-dev"
|
2022-11-20 12:38:21 +00:00
|
|
|
|
|
|
|
steps:
|
2023-09-04 16:48:16 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-20 12:38:21 +00:00
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install octave octave-common octave-signal sox portaudio19-dev python3-pyaudio
|
2023-02-21 19:24:51 +00:00
|
|
|
pip3 install psutil crcengine ujson pyserial numpy structlog sounddevice pyaudio requests websocket-client
|
2022-11-20 12:38:21 +00:00
|
|
|
pip3 install pytest pytest-rerunfailures
|
|
|
|
|
|
|
|
- name: Build codec2
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2023-05-04 09:23:30 +00:00
|
|
|
git clone https://github.com/drowe67/codec2.git
|
2023-04-26 11:57:28 +00:00
|
|
|
cd codec2
|
2022-11-20 12:38:21 +00:00
|
|
|
mkdir -p build_linux && cd build_linux && cmake .. && make
|
|
|
|
|
|
|
|
- name: run ctests
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{github.workspace}}
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux ..
|
|
|
|
ctest --output-on-failure
|