-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (51 loc) · 1.66 KB
/
Copy pathdocs.yml
File metadata and controls
61 lines (51 loc) · 1.66 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: docs
on:
push:
branches: [main, master, gymnasium, cleanup-2026]
pull_request:
branches: [main, master, gymnasium, cleanup-2026]
workflow_dispatch: {}
jobs:
sphinx-build:
runs-on: ubuntu-22.04
steps:
- name: Check out UniROS (with submodules)
uses: actions/checkout@v4
with:
path: UniROS
submodules: recursive
# The framework packages outside UniROS live in separate repos.
# Clone them alongside so docs/conf.py's sys.path entries find them.
- name: Check out sb3_ros_support
uses: actions/checkout@v4
with:
repository: ncbdrck/sb3_ros_support
ref: gymnasium
path: sb3_ros_support
- name: Check out rl_environments
uses: actions/checkout@v4
with:
repository: ncbdrck/rl_environments
path: rl_environments
- name: Check out rl_training_validation
uses: actions/checkout@v4
with:
repository: ncbdrck/rl_training_validation
path: rl_training_validation
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install docs build deps
working-directory: UniROS
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build HTML docs (warnings-as-errors)
working-directory: UniROS
run: sphinx-build -W --keep-going -b html docs docs/_build/html
- name: Upload built docs as artifact
uses: actions/upload-artifact@v4
with:
name: html-docs
path: UniROS/docs/_build/html
retention-days: 14