Skip to content

Commit

Permalink
[Fix] Make python API doc generation in Microsoft-hosted Agent (#21766)
Browse files Browse the repository at this point in the history
### 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

---------
  • Loading branch information
mszhanyi authored Aug 20, 2024
1 parent 1fb2e71 commit 9f7e19c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-python-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions:
jobs:
build:
name: Generate Python API docs
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-ubuntu-CPU"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install tools
Expand Down
2 changes: 1 addition & 1 deletion docs/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pandas
pydot
coloredlogs
flatbuffers
numpy
numpy<2.0.0
packaging
protobuf
sympy
Expand Down

0 comments on commit 9f7e19c

Please sign in to comment.