Skip to content

Tests

Tests #554

Workflow file for this run

---
# Run unit tests using CTest
name: Tests
on:
schedule:
- cron: "0 3 * * *"
push:
branches:
- "*"
tags:
- "v*.*.*"
pull_request:
branches:
- "main"
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Protobuf
run: sudo apt install protobuf-compiler libprotobuf-c-dev cmake tree gcc g++
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Generate proto files for python
run: python generate_proto.py --python
- name: Install python requirements
run: pip install -r requirements.txt
- name: Run python integration tests
run: pytest -vvv test
- name: Build and Test
run: |
mkdir build
cd build
cmake ../
make
ctest