diff --git a/.github/workflows/build_and_deploy_conda.yml b/.github/workflows/build_and_deploy_conda.yml index 8917419..9bd1861 100644 --- a/.github/workflows/build_and_deploy_conda.yml +++ b/.github/workflows/build_and_deploy_conda.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ubuntu-latest, ] # macos-12, windows-2019] + platform: [ubuntu-latest] # macos-12, windows-2019] python-version: ["3.12",] runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_with_docs.yml similarity index 71% rename from .github/workflows/build_docs.yml rename to .github/workflows/build_with_docs.yml index 4fd23e7..f826960 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_with_docs.yml @@ -2,11 +2,15 @@ name: Build the package using cmake then documentation on: workflow_dispatch: + push: pull_request: release: types: - published +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Debug permissions: contents: read @@ -18,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ubuntu-latest, ] + platform: [ubuntu-latest, macos-latest] python-version: ["3.12",] runs-on: ${{ matrix.platform }} @@ -39,15 +43,20 @@ jobs: channels: conda-forge conda-remove-defaults: "true" - - name: Build library + - name: Build library and docs run: | mkdir build cd build - cmake .. -DAARE_SYSTEM_LIBRARIES=ON -DAARE_PYTHON_BINDINGS=ON -DAARE_DOCS=ON - make -j 2 + cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DAARE_SYSTEM_LIBRARIES=ON -DAARE_PYTHON_BINDINGS=ON -DAARE_DOCS=ON -DAARE_TESTS=ON + make -j 4 make docs + - name: C++ unit tests + working-directory: ${{github.workspace}}/build + run: ctest -C ${{env.BUILD_TYPE}} -j4 + - name: Upload static files as artifact + if: matrix.platform == 'ubuntu-latest' id: deployment uses: actions/upload-pages-artifact@v3 with: diff --git a/etc/dev-env.yml b/etc/dev-env.yml index 5b83b40..e4a43cd 100644 --- a/etc/dev-env.yml +++ b/etc/dev-env.yml @@ -3,6 +3,7 @@ channels: - conda-forge dependencies: - anaconda-client + - catch2 - conda-build - doxygen - sphinx