From cf7668affc4b469d2c93a087cebb76c943c8b8b4 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Thu, 16 Jul 2026 16:45:31 +0200 Subject: [PATCH 1/2] [FIX] Table of contents broke build-books workflow --- book/_toc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/_toc.yml b/book/_toc.yml index 23e11cb..cfde90d 100644 --- a/book/_toc.yml +++ b/book/_toc.yml @@ -4,7 +4,7 @@ format: jb-book root: intro.md parts: - - caption: Week 1: Getting started! + - caption: "Week 1: Getting started!" chapters: - file: Week1/Folders.md - file: Week1/installation.md From 795ae496e57d70007d0ecf0ceafef0a3640a5f57 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Thu, 16 Jul 2026 16:55:36 +0200 Subject: [PATCH 2/2] Added workflow for testing PRs for build failure --- .github/workflows/pr-checks.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..ae62681 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,30 @@ +name: PR checks + +on: + pull_request: + branches: + - "**" + +permissions: + contents: read + +jobs: + test-and-build: + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Build book + run: teachbooks build book