-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add Github action for building HTML on macOS
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build HTML on macOS | ||
on: [push, pull_request] | ||
jobs: | ||
html-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install pandoc | ||
run: | | ||
brew install pandoc | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3 | ||
- name: Double-check Python version | ||
run: | | ||
python --version | ||
- name: Install Python package | ||
run: | | ||
python -m pip install . | ||
- name: Install docs dependencies | ||
run: | | ||
python -m pip install -r doc/requirements.txt | ||
- name: Build HTML | ||
run: | | ||
python -m sphinx -W --keep-going --color doc/ _build/html/ |