Adjusted mclmc #103
Workflow file for this run
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
name: Test the book | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the branch | |
uses: actions/checkout@v3 | |
- name: Jupyter Book cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ./jupyter_cache | |
key: ${{ github.event.number }}-jupyter-cache-${{ github.run_id }} | |
restore-keys: | | |
${{ github.event.number }}-jupyter-cache | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Build the book | |
run: | | |
mkdir -p ./jupyter_cache | |
ls ./jupyter_cache | |
jupyter-book build -n --keep-going book | |
ls ./jupyter_cache |