Add cancellation guidance to roles #355
Workflow file for this run
This file contains hidden or 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
name: Build Book | |
# Run this on pull requests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-book: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Install dependencies | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install dependencies | |
run: | | |
poetry install | |
# (optional) Cache your executed notebooks between runs | |
- name: Cache executed notebooks | |
uses: actions/cache@v4 | |
with: | |
path: _build/.jupyter_cache | |
key: jupyter-book-cache-${{ hashFiles('pyproject.toml') }} | |
# Build the book | |
- name: Build the book | |
run: | | |
poetry run jupyter-book build . | |
# Always upload logs, even if build succeeds | |
- name: Upload error logs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: error-logs | |
path: _build/html/reports/pathways/related_courses.err.log | |
continue-on-error: true |