From ec483dacb1bf84a4e7322dfc74ee98cf5dc3ddeb Mon Sep 17 00:00:00 2001 From: chensuyue Date: Mon, 17 Nov 2025 22:46:23 +0800 Subject: [PATCH 1/4] Fix IO build issue Signed-off-by: chensuyue --- docs/source/api-doc/api_2.rst | 1 - docs/source/api-doc/api_3.rst | 7 ------- docs/source/api-doc/benchmark.rst | 6 ------ 3 files changed, 14 deletions(-) delete mode 100644 docs/source/api-doc/benchmark.rst diff --git a/docs/source/api-doc/api_2.rst b/docs/source/api-doc/api_2.rst index 1b7fb80f418..e0711f577a0 100644 --- a/docs/source/api-doc/api_2.rst +++ b/docs/source/api-doc/api_2.rst @@ -9,7 +9,6 @@ quantization.rst mix_precision.rst training.rst - benchmark.rst config.rst objective.rst diff --git a/docs/source/api-doc/api_3.rst b/docs/source/api-doc/api_3.rst index 7c01e073f0b..7642d7939bd 100644 --- a/docs/source/api-doc/api_3.rst +++ b/docs/source/api-doc/api_3.rst @@ -18,10 +18,3 @@ tf_quantization_common.rst tf_quantization_config.rst tf_quantization_autotune.rst - -**Other Modules:** - -.. toctree:: - :maxdepth: 1 - - benchmark.rst diff --git a/docs/source/api-doc/benchmark.rst b/docs/source/api-doc/benchmark.rst deleted file mode 100644 index c774174b482..00000000000 --- a/docs/source/api-doc/benchmark.rst +++ /dev/null @@ -1,6 +0,0 @@ -Benchmark -========= - -.. autoapisummary:: - - neural_compressor.benchmark From 68feda3e01872a9c439405c4d05e548ea5108b2e Mon Sep 17 00:00:00 2001 From: chensuyue Date: Mon, 17 Nov 2025 22:48:59 +0800 Subject: [PATCH 2/4] open pull_request test for IO build Signed-off-by: chensuyue --- .github/workflows/publish.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb752d2319c..2ac146ee455 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ on: push: branches: - master + pull_request: + branches: + - master jobs: build: @@ -18,16 +21,17 @@ jobs: pull-requests: write contents: write steps: - - uses: actions/checkout@v3 - - name: Build Online Document - run: | - git config --local --get remote.origin.url - cd docs/build_docs - bash build.sh latest + - uses: actions/checkout@v3 + - name: Build Online Document + run: | + git config --local --get remote.origin.url + cd docs/build_docs + bash build.sh latest - - name: Push to github - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build_tmp/gh-pages - publish_branch: gh-pages + if: ${{ github.event_name == 'push' }} + - name: Push to github + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build_tmp/gh-pages + publish_branch: gh-pages From accde269843a64f39f8188eeb5a2de0d17efd615 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:53:47 +0000 Subject: [PATCH 3/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/pr-link-scan.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-link-scan.yml b/.github/workflows/pr-link-scan.yml index edc1d5f7d14..dc0b7ac68b6 100644 --- a/.github/workflows/pr-link-scan.yml +++ b/.github/workflows/pr-link-scan.yml @@ -40,11 +40,11 @@ jobs: fail="FALSE" merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}')" - + echo "no_proxy=$no_proxy" echo "http_proxy=$http_proxy" echo "https_proxy=$https_proxy" - + if [ -n "$changed_files" ]; then for changed_file in $changed_files; do # echo $changed_file @@ -118,11 +118,11 @@ jobs: merged_commit=$(git log -1 --format='%H') changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}')" png_lines=$(grep -Eo '\]\([^)]+\)' --include='*.md' -r .|grep -Ev 'http' | grep -Ev 'shape=' | grep -Ev 'mailto:inc.maintainers@intel.com') - + echo "no_proxy=$no_proxy" echo "http_proxy=$http_proxy" echo "https_proxy=$https_proxy" - + if [ -n "$png_lines" ]; then for png_line in $png_lines; do # echo "No.1----->png_line is $png_line" From f7625be6628e593a9a89146dd4b5fd328e343872 Mon Sep 17 00:00:00 2001 From: chensuyue Date: Mon, 17 Nov 2025 22:56:21 +0800 Subject: [PATCH 4/4] fix issue Signed-off-by: chensuyue --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ac146ee455..205f4ddd12f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,14 +22,15 @@ jobs: contents: write steps: - uses: actions/checkout@v3 + - name: Build Online Document run: | git config --local --get remote.origin.url cd docs/build_docs bash build.sh latest - if: ${{ github.event_name == 'push' }} - name: Push to github + if: ${{ github.event_name == 'push' }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}