Skip to content

Commit

Permalink
Add make tutorial to docs CI workflow (#3012)
Browse files Browse the repository at this point in the history
  • Loading branch information
eb8680 committed Dec 29, 2022
1 parent 0b1818c commit e082c09
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,40 @@ jobs:
run: |
make docs
make doctest
tutorials-html:
runs-on: ubuntu-20.04
needs: lint
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-8 g++-8 ninja-build graphviz pandoc
python -m pip install --upgrade pip wheel 'setuptools!=58.5.*,<60'
# Keep track of pyro-api master branch
pip install https://github.com/pyro-ppl/pyro-api/archive/master.zip
pip install torch==1.11.0+cpu torchvision==0.12.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install .[test]
pip install -r docs/requirements.txt
# requirements for tutorials (from .[dev])
sudo apt-get install pandoc
pip install nbformat
pip install nbsphinx>=0.3.2
pip install nbstripout
pip install pypandoc
pip install ninja
pip freeze
- name: Build HTML from tutorials
run: |
SPHINXOPTS="-E" make tutorial
unit:
runs-on: ubuntu-20.04
needs: docs
Expand Down Expand Up @@ -96,7 +130,7 @@ jobs:
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
examples:
runs-on: ubuntu-20.04
needs: docs
needs: [docs, tutorials-html]
strategy:
matrix:
python-version: [3.7]
Expand Down

0 comments on commit e082c09

Please sign in to comment.