Skip to content

Commit 9f7e19c

Browse files
authored
[Fix] Make python API doc generation in Microsoft-hosted Agent (microsoft#21766)
### Description <!-- Describe your changes. --> ### Motivation and Context 1. Python API doc needs to be merged from a fork, but 1ES self-hosted pool is only for one github repo. 2. ubuntu-latest will be install numpy above 2.0 by default, and current python API doc generation doesn't support it. So I pin numpy < 2.0.0 ---------
1 parent 1fb2e71 commit 9f7e19c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-python-apidocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
build:
2424
name: Generate Python API docs
25-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-ubuntu-CPU"]
25+
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Install tools

docs/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pandas
1313
pydot
1414
coloredlogs
1515
flatbuffers
16-
numpy
16+
numpy<2.0.0
1717
packaging
1818
protobuf
1919
sympy

0 commit comments

Comments
 (0)