-
Notifications
You must be signed in to change notification settings - Fork 135
41 lines (34 loc) · 1.08 KB
/
check-book.yml
File metadata and controls
41 lines (34 loc) · 1.08 KB
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
name: check-book
on:
push:
branches: [main, v2]
pull_request:
branches: [main, v2]
jobs:
check-build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y graphviz libgraphviz-dev
pip install pygraphviz tensorflow
pip install -e package/
- name: Check pre-commit
run: |
pip install pre-commit
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
- name: Build the book (structure check, no execution)
run: jupyter-book build -n .
- name: Link Checker
uses: lycheeverse/lychee-action@v2
continue-on-error: true
id: lc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --verbose --exclude rdkit.org/xml --max-redirects 100 --no-progress _build/html/dl/**/*.html _build/html/ml/**/*.html _build/html/applied/**/*.html _build/html/*.html
fail: true