Skip to content

Commit

Permalink
fix: Install pandoc manually from GitHub release binaries
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert committed Aug 30, 2023
1 parent d9b079f commit 1c60261
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 1c60261

Please sign in to comment.