forked from dbbs-lab/bsb-core
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (22 loc) · 732 Bytes
/
docs.yml
File metadata and controls
25 lines (22 loc) · 732 Bytes
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
name: docs
on: [push, pull_request]
jobs:
check-documentation:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Setup software environment
run: |
sudo apt update
sudo apt install -y openmpi-bin libopenmpi-dev
- name: Setup Python environment
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build documentation, nitpick, and fail on warnings
run: cd docs && sphinx-build -nW -b html . _build/html