diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bbf4c35d2..faf990552c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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]