Tests #441
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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 | |