-
-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add make tutorial to docs CI workflow #3012
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f1ac138
Add make tutorial to docs CI workflow
eb8680 b44bf58
docs requirements
eb8680 42d9ac0
requirements
eb8680 191df8a
update
eb8680 bc1b06b
install pandoc in docs ci
eb8680 d013ba0
merge conflict
eb8680 d50783c
Merge branch 'dev' into ci-tutorial-html
eb8680 e7c680c
dont fail on warnings for tutorials
eb8680 489375d
create separate stage
eb8680 4ba3734
examples stage should depend on html
eb8680 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I disabled the |
||
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] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the tutorial build to a separate stage to limit the impact on CI time