From 9f7e19cedd3133e1d5d2e2fa4b517c44b05ada5c Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Tue, 20 Aug 2024 23:32:38 +0800 Subject: [PATCH] [Fix] Make python API doc generation in Microsoft-hosted Agent (#21766) ### Description ### 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 --------- --- .github/workflows/publish-python-apidocs.yml | 2 +- docs/python/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-python-apidocs.yml b/.github/workflows/publish-python-apidocs.yml index 0b7a23e0cd..e98d22450c 100644 --- a/.github/workflows/publish-python-apidocs.yml +++ b/.github/workflows/publish-python-apidocs.yml @@ -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 diff --git a/docs/python/requirements.txt b/docs/python/requirements.txt index 98e6923d9c..b528063e1a 100644 --- a/docs/python/requirements.txt +++ b/docs/python/requirements.txt @@ -13,7 +13,7 @@ pandas pydot coloredlogs flatbuffers -numpy +numpy<2.0.0 packaging protobuf sympy