mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
Update deploy-docs.yml
This commit is contained in:
53
.github/workflows/deploy-docs.yml
vendored
53
.github/workflows/deploy-docs.yml
vendored
@@ -39,24 +39,55 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.branch || github.ref }}
|
ref: ${{ github.event.inputs.branch || github.ref }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Python environment
|
- name: Setup Miniforge (with mamba)
|
||||||
uses: actions/setup-python@v5
|
uses: conda-incubator/setup-miniconda@v3
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
miniforge-version: latest
|
||||||
|
use-mamba: true
|
||||||
|
python-version: '3.11.11'
|
||||||
|
channels: conda-forge,robostack-staging,uni-lab,defaults
|
||||||
|
channel-priority: flexible
|
||||||
|
activate-environment: unilab
|
||||||
|
auto-update-conda: false
|
||||||
|
show-channel-urls: true
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y pandoc
|
sudo apt-get install -y pandoc
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install unilabos and dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
echo "Installing unilabos and dependencies to unilab environment..."
|
||||||
# Install package in development mode to get version info
|
echo "Using mamba for faster and more reliable dependency resolution..."
|
||||||
pip install -e .
|
mamba install -n unilab uni-lab::unilabos -c uni-lab -c robostack-staging -c conda-forge -y
|
||||||
# Install documentation dependencies
|
|
||||||
pip install -r docs/requirements.txt
|
- name: Install latest unilabos from source
|
||||||
|
run: |
|
||||||
|
echo "Uninstalling existing unilabos..."
|
||||||
|
mamba run -n unilab pip uninstall unilabos -y || echo "unilabos not installed via pip"
|
||||||
|
echo "Installing unilabos from source..."
|
||||||
|
mamba run -n unilab pip install .
|
||||||
|
echo "Verifying installation..."
|
||||||
|
mamba run -n unilab pip show unilabos
|
||||||
|
|
||||||
|
- name: Install documentation dependencies
|
||||||
|
run: |
|
||||||
|
echo "Installing documentation build dependencies..."
|
||||||
|
mamba run -n unilab pip install -r docs/requirements.txt
|
||||||
|
|
||||||
|
- name: Display environment info
|
||||||
|
run: |
|
||||||
|
echo "=== Environment Information ==="
|
||||||
|
mamba env list
|
||||||
|
echo ""
|
||||||
|
echo "=== Installed Packages ==="
|
||||||
|
mamba list -n unilab | grep -E "(unilabos|ros-humble|control_msgs|nav2_msgs)" || mamba list -n unilab
|
||||||
|
echo ""
|
||||||
|
echo "=== Python Packages ==="
|
||||||
|
mamba run -n unilab pip list | grep unilabos || mamba run -n unilab pip list
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
id: pages
|
id: pages
|
||||||
@@ -68,8 +99,8 @@ jobs:
|
|||||||
cd docs
|
cd docs
|
||||||
# Clean previous builds
|
# Clean previous builds
|
||||||
rm -rf _build
|
rm -rf _build
|
||||||
# Build HTML documentation
|
# Build HTML documentation in conda environment
|
||||||
python -m sphinx -b html . _build/html -v
|
mamba run -n unilab python -m sphinx -b html . _build/html -v
|
||||||
|
|
||||||
- name: Check build results
|
- name: Check build results
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user