Skip to content

Commit a210ad3

Browse files
committed
Fix docs workflow: add JRE, build tools, and missing Python deps
- Install `default-jre` and `build-essential` in runner dependencies. Java is required for H2O-related imports during documentation generation. - Install `psutil` and `ipython` before project installation. These are required for Sphinx autodoc to successfully import modules like `H2OBaseClassifier` and `pipeline.data`. - Apply updates to both `build-github` and `build-gitea` jobs.
1 parent 78193d0 commit a210ad3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
sudo apt-get update
5656
# Install lsb-release, Node.js, and ca-certificates all at once
57-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lsb-release nodejs ca-certificates
57+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lsb-release nodejs ca-certificates default-jre build-essential
5858
5959
# Trust your mounted certificate (from the act command)
6060
sudo update-ca-certificates
@@ -69,6 +69,8 @@ jobs:
6969
run: |
7070
# Ensure setuptools and wheel are present before installing the project
7171
pip install --upgrade pip setuptools wheel
72+
# psutil/ipython required for imports during autodoc (H2OBaseClassifier, pipeline.data)
73+
pip install psutil ipython
7274
pip install .[docs]
7375
7476
- name: Verify PyTorch installation
@@ -118,7 +120,7 @@ jobs:
118120
- name: Install Runner Dependencies & Configure CA
119121
run: |
120122
sudo apt-get update
121-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lsb-release nodejs ca-certificates
123+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lsb-release nodejs ca-certificates default-jre build-essential
122124
sudo update-ca-certificates
123125
124126
- name: Set up Python
@@ -130,6 +132,8 @@ jobs:
130132
- name: Install dependencies
131133
run: |
132134
pip install --upgrade pip setuptools wheel
135+
# psutil/ipython required for imports during autodoc (H2OBaseClassifier, pipeline.data)
136+
pip install psutil ipython
133137
pip install .[docs]
134138
135139
- name: Verify PyTorch installation

0 commit comments

Comments
 (0)