Skip to content

templates/ci.yml: a parallel PDF check that each site can switch off #230

Closed

Description

@mmcky

Decided on #146 (decision 7, 2026-11-04): HTML-only PR previews keep a PDF check, run in parallel with the preview, and each site can turn it off.

Malformed LaTeX can pass the HTML build and still break the PDF build, and a broken PDF build disrupts the publish. So when previews move to HTML only (#148), PR CI should keep checking the PDF, without making reviewers wait for it before the preview link appears. Sites that publish no PDF should be able to switch the check off.

Proposal

  • A pdf-check job in templates/ci.yml, beside the preview job, that builds the PDF with build-lectures (builder: pdflatex) and fails the PR's checks when the LaTeX build fails. The preview deploy does not wait for it.
  • A per-site switch, so a site with no PDF skips the job cleanly (reported as skipped, not failed). A repository variable that defaults to on is one option; settle the mechanism in the PR.
  • The PDF build needs executed notebooks. It should reuse what the HTML job executes, through the same jupyter-cache or the HTML job's cache, rather than executing everything again. Re-execution would double the cost, and on GPU repos it would need a second GPU runner.
  • Document the switch in the template and the user manual. A repository that wants a broken PDF to block merges can make pdf-check a required status check.

Done when

Related: #146, #148, #92, #83.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions