-
Notifications
You must be signed in to change notification settings - Fork 11
90 lines (77 loc) · 3.11 KB
/
Copy pathdocs.yml
File metadata and controls
90 lines (77 loc) · 3.11 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: docs
on:
push:
branches: [main, master, gymnasium, tier2-2026]
pull_request:
branches: [main, master, gymnasium, tier2-2026]
workflow_dispatch: {}
jobs:
sphinx-build:
runs-on: ubuntu-22.04
steps:
# Check out UniROS WITHOUT submodules; we'll clone the framework
# repos individually below at branch refs matching the current run.
# The submodule gitlinks in UniROS point at older multiros/realros
# SHAs; using them here would render stale docstrings.
- name: Check out UniROS
uses: actions/checkout@v4
with:
path: UniROS
# The framework + application packages live in separate repos.
# Clone each at the SAME branch ref this workflow is running on
# (tier2-2026 → tier2-2026, gymnasium → gymnasium, etc.) so the
# docs render the matching versions of every package.
- name: Check out multiros
uses: actions/checkout@v4
with:
repository: ncbdrck/multiros
ref: ${{ github.head_ref || github.ref_name }}
path: multiros
- name: Check out realros
uses: actions/checkout@v4
with:
repository: ncbdrck/realros
ref: ${{ github.head_ref || github.ref_name }}
path: realros
- name: Check out sb3_ros_support
uses: actions/checkout@v4
with:
repository: ncbdrck/sb3_ros_support
ref: ${{ github.head_ref || github.ref_name }}
path: sb3_ros_support
# rl_environments and rl_training_validation use `main` as their
# default branch, NOT `gymnasium` (that's a framework-side convention).
# So when UniROS is on gymnasium, fall back to `main` for these two.
# Other branches (tier2-2026, feature branches) still try to match.
- name: Check out rl_environments
uses: actions/checkout@v4
with:
repository: ncbdrck/rl_environments
ref: ${{ (github.head_ref || github.ref_name) == 'gymnasium' && 'main' || (github.head_ref || github.ref_name) }}
path: rl_environments
- name: Check out rl_training_validation
uses: actions/checkout@v4
with:
repository: ncbdrck/rl_training_validation
ref: ${{ (github.head_ref || github.ref_name) == 'gymnasium' && 'main' || (github.head_ref || github.ref_name) }}
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: Syntax-check Python code blocks in docs
working-directory: UniROS
run: python scripts/check_python_code_blocks.py docs -v
- 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