-
Notifications
You must be signed in to change notification settings - Fork 130
44 lines (44 loc) · 1.32 KB
/
html-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build HTML on macOS
on: [push, pull_request]
env:
PYTHONWARNINGS: error
PIP: python -m pip
SPHINX: python -m sphinx -W --keep-going --color
jobs:
html-macos:
runs-on: macos-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pandoc
run: |
brew install pandoc
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3
- name: Double-check Python version
run: |
python --version
- name: Install Python package
env:
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
# https://github.com/pypa/pip/issues/11684
PYTHONWARNINGS: error,default::DeprecationWarning
run: |
$PIP install .
- name: Install docs dependencies
env:
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
# https://github.com/pypa/pip/issues/11684
PYTHONWARNINGS: error,default::DeprecationWarning
run: |
$PIP install -r doc/requirements.txt
- name: Build HTML
env:
# There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398)
PYTHONWARNINGS: error,default::DeprecationWarning
run: |
$SPHINX doc/ _build/html/