mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
first test running tests in github actions
This commit is contained in:
parent
0f08b6525f
commit
73704ea206
2 changed files with 57 additions and 2 deletions
2
.github/workflows/ctest.yml
vendored
2
.github/workflows/ctest.yml
vendored
|
@ -1,7 +1,5 @@
|
||||||
name: CTest
|
name: CTest
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# The CMake configure and build commands are platform-agnostic and should work equally
|
# The CMake configure and build commands are platform-agnostic and should work equally
|
||||||
|
|
57
.github/workflows/modem_tests.yml
vendored
Normal file
57
.github/workflows/modem_tests.yml
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
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:
|
||||||
|
- python-version: "3.7"
|
||||||
|
- python-version: "3.8"
|
||||||
|
- python-version: "3.9"
|
||||||
|
- python-version: "3.10"
|
||||||
|
- python-version: "3.11"
|
||||||
|
#- python-version: "3.12-dev"
|
||||||
|
|
||||||
|
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: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install octave octave-common octave-signal sox
|
||||||
|
|
||||||
|
- name: Install python packages
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
python3 tests/test_server.py
|
Loading…
Reference in a new issue