-
-
Notifications
You must be signed in to change notification settings - Fork 139
37 lines (31 loc) · 967 Bytes
/
build_docs test.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
34
35
36
37
name: build_docs_test
on:
pull_request:
branches: main
paths: "docs/**"
jobs:
test-build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Addon
uses: actions/checkout@v3
with:
path: CAD_Sketcher
- name: Checkout Blender Scripts
uses: actions/checkout@v3
with:
repository: blender/blender
path: blender-git
submodules: "true"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: "pip"
- name: Install Dependencies
run: pip install -r ./CAD_Sketcher/docs/requirements.txt
- name: Set Pythonpath
run: echo "PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE/blender-git/blender/release/scripts/modules:$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Build
run: python3.10 -m mkdocs build -f ./docs/mkdocs.yml
working-directory: ./CAD_Sketcher