[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:
10
.github/workflows/integration-tests.yml
vendored
10
.github/workflows/integration-tests.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user