Skip to content

Commit

Permalink
debugging test_build_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldrop107 committed Nov 15, 2023
1 parent 195da11 commit e050530
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/common_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,34 +125,36 @@ jobs:
test_build_docs:
needs: license_and_format
# Only run if no new changes were made above
if: |
needs.license_and_format.outputs.made_changes == false &&
inputs.doc_target != ''
# if: |
# needs.license_and_format.outputs.made_changes == false &&
# inputs.doc_target != ''
runs-on: ubuntu-latest
container:
image: ghcr.io/nwchemex-project/nwx_buildenv:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- uses: actions/checkout@v4
- name: Doxygen Docs
if: ${{ inputs.doc_target != 'Sphinx' }}
run: |
cmake -Bbuild -H. -GNinja -DBUILD_DOCS=ON -DONLY_BUILD_DOCS=ON \
cmake --build build --target ${{ inputs.doc_target }} --parallel
- run: |
echo ${{ needs.license_and_format.outputs.made_changes == false && inputs.doc_target != '' }}
# - uses: actions/checkout@v4
# - name: Doxygen Docs
# if: ${{ inputs.doc_target != 'Sphinx' }}
# run: |
# cmake -Bbuild -H. -GNinja -DBUILD_DOCS=ON -DONLY_BUILD_DOCS=ON \
# cmake --build build --target ${{ inputs.doc_target }} --parallel

# Migrate the Doxygen documentation to the docs source
mkdir docs/build
mkdir docs/build/html
mv build/html "docs/build/html/${{ inputs.doc_target }}"
shell: bash
- name: Sphinx Docs
run: |
cd docs
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
make html
shell: bash
# # Migrate the Doxygen documentation to the docs source
# mkdir docs/build
# mkdir docs/build/html
# mv build/html "docs/build/html/${{ inputs.doc_target }}"
# shell: bash
# - name: Sphinx Docs
# run: |
# cd docs
# if [ -f requirements.txt ]; then
# pip install -r requirements.txt
# fi
# make html
# shell: bash

0 comments on commit e050530

Please sign in to comment.