Skip to content

Commit

Permalink
Build pdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Oct 7, 2023
1 parent 3e91d82 commit 18134b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install doxygen
sudo python3 -m pip install -U gcovr
sudo python3 -m pip install -U gcovr pdoc
- name: checkout
uses: actions/checkout@v3
Expand All @@ -45,7 +45,7 @@ jobs:
cd bufr
mkdir build
cd build
cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_Fortran_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On ..
cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_Fortran_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=OFF ..
make -j2 VERBOSE=1
make install
Expand All @@ -55,6 +55,13 @@ jobs:
ctest --verbose --output-on-failure --rerun-failed
gcovr --root .. -v --html-details --exclude ../test --exclude CMakeFiles --print-summary --exclude-unreachable-branches --exclude-throw-branches --decisions -o test-coverage.html
- name: build-docs
run: |
mkdir bufr/build-docs
cd build-docs
cmake -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=ON -DENABLE_PYTHON=ON ..
make doc python_docs
- name: cache-data
if: steps.cache-data.outputs.cache-hit != 'true'
run: |
Expand All @@ -72,4 +79,4 @@ jobs:
with:
name: docs
path: |
bufr/build/docs/html
bufr/build-docs/docs/html
2 changes: 1 addition & 1 deletion docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Documentation for the Python API for NCEPLIBS-bufr

* [The Python API documentation](https://noaa-emc.github.io/NCEPLIBS-bufr/python/index.html)
* [The Python API documentation](python/index.html)

## Introduction

Expand Down
1 change: 1 addition & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if(ENABLE_DOCS)
${CMAKE_COMMAND} -E env PYTHONPATH=${_lib_dir}:$ENV{PYTHONPATH}
${PDOC_EXECUTABLE} -o ../docs/html/python ./ncepbufr
)
add_dependencies(python_docs doc python_mod)
endif()

install(DIRECTORY ${_lib_dir} DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/python${_PYVER})
Expand Down

0 comments on commit 18134b4

Please sign in to comment.