Unverified Commit 0d1725e1 authored by Kelly Guo's avatar Kelly Guo Committed by GitHub

Updates github actions to error on doc warnings (#3488)

# Description

Some more infrastructure updates to brush up our automated jobs:

- treat warnings as errors in doc building and fixing some existing
warnings
- adding release branches to the doc versions
- making sure all jobs also get triggered on release branches
- fixes make script on windows
- fixes out of space error for license check job


## Type of change

- Documentation update


## Checklist

- [x] I have read and understood the [contribution
guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->

---------
Co-authored-by: 's avatarooctipus <zhengyuz@nvidia.com>
parent 67921815
...@@ -10,6 +10,7 @@ on: ...@@ -10,6 +10,7 @@ on:
branches: branches:
- main - main
- devel - devel
- 'release/**'
pull_request: pull_request:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
...@@ -27,8 +28,7 @@ jobs: ...@@ -27,8 +28,7 @@ jobs:
- id: trigger-deploy - id: trigger-deploy
env: env:
REPO_NAME: ${{ secrets.REPO_NAME }} REPO_NAME: ${{ secrets.REPO_NAME }}
BRANCH_REF: ${{ secrets.BRANCH_REF }} if: "${{ github.repository == env.REPO_NAME && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/devel' || startsWith(github.ref, 'refs/heads/release/')) }}"
if: "${{ github.repository == env.REPO_NAME && github.ref == env.BRANCH_REF }}"
run: echo "defined=true" >> "$GITHUB_OUTPUT" run: echo "defined=true" >> "$GITHUB_OUTPUT"
build-docs: build-docs:
......
...@@ -24,16 +24,20 @@ jobs: ...@@ -24,16 +24,20 @@ jobs:
# - name: Install jq # - name: Install jq
# run: sudo apt-get update && sudo apt-get install -y jq # run: sudo apt-get update && sudo apt-get install -y jq
- name: Clean up disk space
run: |
rm -rf /opt/hostedtoolcache
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.10' # Adjust as needed python-version: '3.11' # Adjust as needed
- name: Install dependencies using ./isaaclab.sh -i - name: Install dependencies using ./isaaclab.sh -i
run: | run: |
# first install isaac sim # first install isaac sim
pip install --upgrade pip pip install --upgrade pip
pip install 'isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com pip install 'isaacsim[all,extscache]==${{ vars.ISAACSIM_BASE_VERSION || '5.0.0' }}' --extra-index-url https://pypi.nvidia.com
chmod +x ./isaaclab.sh # Make sure the script is executable chmod +x ./isaaclab.sh # Make sure the script is executable
# install all lab dependencies # install all lab dependencies
./isaaclab.sh -i ./isaaclab.sh -i
...@@ -48,6 +52,12 @@ jobs: ...@@ -48,6 +52,12 @@ jobs:
- name: Print License Report - name: Print License Report
run: pip-licenses --from=mixed --format=markdown run: pip-licenses --from=mixed --format=markdown
# Print pipdeptree
- name: Print pipdeptree
run: |
pip install pipdeptree
pipdeptree
- name: Check licenses against whitelist and exceptions - name: Check licenses against whitelist and exceptions
run: | run: |
# Define the whitelist of allowed licenses # Define the whitelist of allowed licenses
...@@ -118,9 +128,3 @@ jobs: ...@@ -118,9 +128,3 @@ jobs:
else else
echo "All packages were checked." echo "All packages were checked."
fi fi
# Print pipdeptree
- name: Print pipdeptree
run: |
pip install pipdeptree
pipdeptree
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
}, },
{ {
"package": "typing_extensions", "package": "typing_extensions",
"license": "UNKNOWN", "license": "Python Software Foundation License",
"comment": "PSFL / OSRB" "comment": "PSFL / OSRB"
}, },
{ {
...@@ -400,5 +400,30 @@ ...@@ -400,5 +400,30 @@
"package": "fsspec", "package": "fsspec",
"license" : "UNKNOWN", "license" : "UNKNOWN",
"comment": "BSD" "comment": "BSD"
},
{
"package": "numpy-quaternion",
"license": "UNKNOWN",
"comment": "MIT"
},
{
"package": "aiohappyeyeballs",
"license": "Other/Proprietary License; Python Software Foundation License",
"comment": "PSFL / OSRB"
},
{
"package": "cffi",
"license": "UNKNOWN",
"comment": "MIT"
},
{
"package": "trio",
"license": "UNKNOWN",
"comment": "MIT"
},
{
"package": "pipdeptree",
"license": "UNKNOWN",
"comment": "MIT"
} }
] ]
...@@ -7,8 +7,7 @@ name: Run linters using pre-commit ...@@ -7,8 +7,7 @@ name: Run linters using pre-commit
on: on:
pull_request: pull_request:
push: types: [opened, synchronize, reopened]
branches: [main]
jobs: jobs:
pre-commit: pre-commit:
......
...@@ -15,4 +15,5 @@ multi-docs: ...@@ -15,4 +15,5 @@ multi-docs:
.PHONY: current-docs .PHONY: current-docs
current-docs: current-docs:
@$(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/current" $(SPHINXOPTS) @rm -rf "$(BUILDDIR)/current"
@$(SPHINXBUILD) -W --keep-going "$(SOURCEDIR)" "$(BUILDDIR)/current" $(SPHINXOPTS)
...@@ -282,7 +282,7 @@ templates_path = [ ...@@ -282,7 +282,7 @@ templates_path = [
# Whitelist pattern for remotes # Whitelist pattern for remotes
smv_remote_whitelist = r"^.*$" smv_remote_whitelist = r"^.*$"
# Whitelist pattern for branches (set to None to ignore all branches) # Whitelist pattern for branches (set to None to ignore all branches)
smv_branch_whitelist = os.getenv("SMV_BRANCH_WHITELIST", r"^(main|devel)$") smv_branch_whitelist = os.getenv("SMV_BRANCH_WHITELIST", r"^(main|devel|release/.*)$")
# Whitelist pattern for tags (set to None to ignore all tags) # Whitelist pattern for tags (set to None to ignore all tags)
smv_tag_whitelist = os.getenv("SMV_TAG_WHITELIST", r"^v[1-9]\d*\.\d+\.\d+$") smv_tag_whitelist = os.getenv("SMV_TAG_WHITELIST", r"^v[1-9]\d*\.\d+\.\d+$")
html_sidebars = { html_sidebars = {
......
...@@ -13,8 +13,8 @@ if "%1" == "multi-docs" ( ...@@ -13,8 +13,8 @@ if "%1" == "multi-docs" (
if "%SPHINXBUILD%" == "" ( if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-multiversion set SPHINXBUILD=sphinx-multiversion
) )
%SPHINXBUILD% >NUL 2>NUL where %SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 ( if errorlevel 1 (
echo. echo.
echo.The 'sphinx-multiversion' command was not found. Make sure you have Sphinx echo.The 'sphinx-multiversion' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point echo.installed, then set the SPHINXBUILD environment variable to point
...@@ -37,8 +37,8 @@ if "%1" == "current-docs" ( ...@@ -37,8 +37,8 @@ if "%1" == "current-docs" (
if "%SPHINXBUILD%" == "" ( if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build set SPHINXBUILD=sphinx-build
) )
%SPHINXBUILD% >NUL 2>NUL where %SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 ( if errorlevel 1 (
echo. echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point echo.installed, then set the SPHINXBUILD environment variable to point
...@@ -49,7 +49,8 @@ if "%1" == "current-docs" ( ...@@ -49,7 +49,8 @@ if "%1" == "current-docs" (
echo.http://sphinx-doc.org/ echo.http://sphinx-doc.org/
exit /b 1 exit /b 1
) )
%SPHINXBUILD% %SOURCEDIR% %BUILDDIR%\current %SPHINXOPTS% %O% if exist "%BUILDDIR%\current" rmdir /s /q "%BUILDDIR%\current"
%SPHINXBUILD% -W "%SOURCEDIR%" "%BUILDDIR%\current" %SPHINXOPTS%
goto end goto end
) )
......
...@@ -32,7 +32,7 @@ Asset Base ...@@ -32,7 +32,7 @@ Asset Base
.. autoclass:: AssetBaseCfg .. autoclass:: AssetBaseCfg
:members: :members:
:exclude-members: __init__, class_type :exclude-members: __init__, class_type, InitialStateCfg
Rigid Object Rigid Object
------------ ------------
......
...@@ -61,7 +61,7 @@ USD Camera ...@@ -61,7 +61,7 @@ USD Camera
:members: :members:
:inherited-members: :inherited-members:
:show-inheritance: :show-inheritance:
:exclude-members: __init__, class_type :exclude-members: __init__, class_type, OffsetCfg
Tile-Rendered USD Camera Tile-Rendered USD Camera
------------------------ ------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment