-
Notifications
You must be signed in to change notification settings - Fork 162
33 lines (32 loc) · 963 Bytes
/
check-docs.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
name: "docs"
on:
pull_request:
branches: [ master ]
paths-ignore:
- '.pre-commit-config.yaml'
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install sndfile library # for librose, see https://github.com/deepcharles/ruptures/pull/121
run: |
sudo apt-get install libsndfile1-dev
- name: Install ruptures and dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[docs]
- name: Run notebooks
run: |
find ./docs -name '*.ipynb' | xargs -P 3 -I % jupyter nbconvert --inplace --to notebook --ExecutePreprocessor.kernel_name=python --execute %
- name: Build documentation
run: |
mkdocs build
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: site/