Skip to content

Commit ed097f4

Browse files
committed
CI: add Github action for building HTML on macOS
1 parent 80d9b26 commit ed097f4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/html-macos.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build HTML on macOS
2+
on: [push, pull_request]
3+
jobs:
4+
html-macos:
5+
runs-on: macos-latest
6+
steps:
7+
- name: Clone repo
8+
uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
11+
- name: Install pandoc
12+
run: |
13+
brew install pandoc
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3
18+
- name: Double-check Python version
19+
run: |
20+
python --version
21+
- name: Install Python package
22+
run: |
23+
python -m pip install .
24+
- name: Install docs dependencies
25+
run: |
26+
python -m pip install -r doc/requirements.txt
27+
- name: Build HTML
28+
run: |
29+
python -m sphinx -W --keep-going --color doc/ _build/html/

0 commit comments

Comments
 (0)