[CI]Added initial framework of CXX unittest (#98)

Based on the discussion in #53 , I just added the initial flow of CXX unittests for this repo, with providing two dummy UTs as placeholder to show the usage, feel free to add your own CXX unittests. 
@Superjomn  @ptillet 

@ptillet , in this PR, I also configure the integration-tests.yml to add the unittest into github CI check. 

Thanks
This commit is contained in:
Jun Yang
2022-09-04 12:50:27 +08:00
committed by GitHub
parent d0b4c67b05
commit ea175f689e
10 changed files with 112 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ on:
jobs:
Integration-Tests:
runs-on: self-hosted
steps:
@@ -31,7 +31,7 @@ jobs:
run: |
pip install autopep8
autopep8 -a -r -d --exit-code ./python || ( echo '::error title=Style issues::Please run \"autopep8 -a -r -i ./python\"' ; exit 1 )
- name: Check cpp style
run: |
sudo apt-get install -y clang-format
@@ -62,3 +62,9 @@ jobs:
run: |
cd python/tests
pytest
- name: Run CXX unittests
run: |
cd python/
cd "build/$(ls build)"
ctest