Skip to content

Commit

Permalink
Add pull request CI
Browse files Browse the repository at this point in the history
Build doc but don't deploy.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Feb 28, 2024
1 parent 2ee2556 commit 58558cc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Build Doc

on:
push:
branches:
Expand All @@ -16,7 +14,7 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
pull_request:
paths:
- 'docs/**'

jobs:
build:
name: Build doc
runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- uses: actions/checkout@v4
with:
lfs: 'true'

- name: Install pip packages
working-directory: docs
run: |
pip install pip --upgrade
pip install -r requirements.txt --upgrade
- name: Build doc
working-directory: docs
run: |
make html SPHINXOPTS='-W --keep-going'
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
intersphinx_mapping = {
'doctools': ('https://analogdevicesinc.github.io/doctools', None),
'hdl': ('https://analogdevicesinc.github.io/hdl', None),
'no-os': ('https://analogdevicesinc.github.io/no-os', None)
'no-OS': ('https://analogdevicesinc.github.io/no-OS', None)
}

intersphinx_disabled_reftypes = ["*"]
Expand Down

0 comments on commit 58558cc

Please sign in to comment.