From 444ee421d286a58cdcef1a204a13b83bd2683928 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 6 Sep 2023 01:44:33 -0500 Subject: [PATCH] fix: Install pandoc manually from GitHub release binaries (#2307) * 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. --- .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 99540eb67b..aa744303f6 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: |