Skip to content

Commit

Permalink
CI: Build the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 2, 2024
1 parent 60f63c4 commit 74a6e12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ jobs:
shell: bash
run: |
source bin/test_symengine_unix.sh
pip install sphinx m2r2 sphinxcontrib-apidoc sphinx-book-theme
sphinx-build docs/ genDocs
env:
PYTEST_ADDOPTS: ${{ matrix.PYTEST_ADDOPTS }}
USE_GLIBCXX_DEBUG: ${{ matrix.USE_GLIBCXX_DEBUG }}
Expand Down Expand Up @@ -185,6 +187,13 @@ jobs:
BUILD_SHARED_LIBS: ${{ matrix.BUILD_SHARED_LIBS }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}

- name: Generate documentation
shell: bash
run: |
pip install symengine --user
pip install sphinx m2r2 sphinxcontrib-apidoc sphinx-book-theme
sphinx-build docs/ genDocs
- name: Deploy Documentation
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.py') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.py')}}
uses: peaceiris/actions-gh-pages@v3
Expand Down
1 change: 0 additions & 1 deletion bin/test_symengine_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ source bin/install_travis.sh
# Build Python wrappers and test
cd $PYTHON_SOURCE_DIR
bin/test_travis.sh

0 comments on commit 74a6e12

Please sign in to comment.