3 Commits

Author SHA1 Message Date
f665b493b1 enable tests 2024-11-29 17:15:16 +01:00
fd4175ecb2 added missing section 2024-11-29 17:12:17 +01:00
3970320635 run tests 2024-11-29 17:08:58 +01:00

View File

@ -1,4 +1,4 @@
name: Build the package using cmake then documentation name: Build package and docs, test, deploy if on main
on: on:
workflow_dispatch: workflow_dispatch:
@ -36,16 +36,22 @@ jobs:
channels: conda-forge channels: conda-forge
- name: Prepare - name: Prepare
run: conda install doxygen sphinx=7.1.2 breathe pybind11 sphinx_rtd_theme furo nlohmann_json zeromq fmt numpy run: conda install doxygen sphinx=7.1.2 breathe pybind11 sphinx_rtd_theme furo nlohmann_json zeromq fmt numpy catch2
- name: Build library - name: Build
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. -DAARE_SYSTEM_LIBRARIES=ON -DAARE_DOCS=ON cmake .. -DAARE_SYSTEM_LIBRARIES=ON -DAARE_TESTS=ON -DAARE_DOCS=ON
make -j 2 make -j 2
make docs make docs
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}} -j1
- name: Upload static files as artifact - name: Upload static files as artifact
id: deployment id: deployment
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3