Skip to content

Commit

Permalink
test: use homebrew to install sphinx instead of pip on macOS
Browse files Browse the repository at this point in the history
With the current GitHub Actions macOS image, pip3 install sphinx does
not appear to place sphinx-doc in the path. This results in
documentation build failures.

Resolve this by using homebrew to install sphinx-doc and add it to the
search path.

https://www.sphinx-doc.org/en/master/usage/installation.html
https://github.com/vincentkfu/fio/actions/runs/3395703049/jobs/5645918799

Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Nov 4, 2022
1 parent 70d9a98 commit 02ee8a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/actions-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ install_macos() {
#echo "Updating homebrew..."
#brew update >/dev/null 2>&1
echo "Installing packages..."
HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs
pip3 install scipy six sphinx
HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs sphinx-doc
brew link sphinx-doc --force
pip3 install scipy six
}

main() {
Expand Down

0 comments on commit 02ee8a1

Please sign in to comment.