Skip to content

Commit

Permalink
Merge pull request #158 from cta-observatory/fix-docs_build
Browse files Browse the repository at this point in the history
Fix documentation build
  • Loading branch information
HealthyPear authored Aug 31, 2021
2 parents 02f4b91 + 3859faa commit f649f68
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,23 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: ammaraskar/sphinx-action@master

- name: Set up Python
uses: actions/setup-python@v2
with:
docs-folder: "docs/"
pre-build-command: |
apt update --yes && apt install --yes git build-essential pandoc
pip install -U pip setuptools wheel
pip install -e .[docs]
# treat warnings as errors, make sure links are working
build-command: make html SPHINXOPTS="-W --keep-going -n --color -w /tmp/sphinx-log"
python-version: 3.8

- name: Install doc dependencies
run: |
sudo apt update --yes && sudo apt install --yes git build-essential pandoc graphviz
pip install -U pip setuptools wheel
pip install -e .[docs]
git describe --tags
python -c 'import protopipe; print(protopipe.__version__)'
- name: Build docs
run: cd docs && make html SPHINXOPTS="-W --keep-going -n --color -j auto"

- name: Deploy to github pages
# only run on push to master
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down

0 comments on commit f649f68

Please sign in to comment.