From b430e708da9c3a08ef9a7cda261f7f98546b9f0e Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 30 Aug 2023 17:06:43 +0100 Subject: [PATCH] fix: Install pandoc manually from GitHub release binaries * Ubuntu 22.04 (current operating system for GitHub Actions runners for 'ubuntu-latest') will install pandoc v2.9.2.1 through apt-get which is too old for modern versions of nbsphinx. Installing directly from binaries provided on GitHub allows a workaround for getting newer versions of pandoc on runners until the GitHub Actions runner environment updates. - Avoids ``` RuntimeWarning: You are using an unsupported version of pandoc (2.9.2.1). Your version must be at least (2.14.2) but less than (4.0.0). ``` from nbsphinx v0.9.3+. --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 73ff09d5c1..9ac6771687 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,7 +36,10 @@ jobs: - name: Install apt-get dependencies run: | sudo apt-get update - sudo apt-get -qq install pandoc + # Ubuntu 22.04's pandoc is too old (2.9.2.x), so install manually + # until the ubuntu-latest updates. + curl --silent --location --remote-name https://github.com/jgm/pandoc/releases/download/3.1.6.2/pandoc-3.1.6.2-1-amd64.deb + sudo apt-get install ./pandoc-*amd64.deb - name: Check docstrings run: |