-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1.23 KB
/
check_docs.yml
File metadata and controls
34 lines (32 loc) · 1.23 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
name: Check docs
on:
workflow_call:
workflow_dispatch:
jobs:
check_docs:
name: Check docs
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: ni/python-actions/setup-python@aa64e60612cb078b0c2ada666becbd70d4817d55 # 0.7.1
id: setup-python
- name: Set up Poetry
uses: ni/python-actions/setup-poetry@aa64e60612cb078b0c2ada666becbd70d4817d55 # 0.7.1
- name: Check for lock changes
run: poetry check --lock
- name: Cache virtualenv (with docs)
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: .venv
key: nipanel-with-docs-${{ runner.os }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install nipanel (with docs)
run: poetry install -v --only main,docs
- name: Generate docs
run: poetry run sphinx-build docs docs/_build -b html -W
- name: Upload docs artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: nipanel-docs
path: docs/_build/