fix ci : only run web ci (#16939)

### Summary

fix  ci : only run web ci
This commit is contained in:
maoyifeng
2026-07-15 14:51:10 +08:00
committed by GitHub
parent 30cc00bed2
commit e082e69951

View File

@@ -209,8 +209,12 @@ jobs:
api_proxy_schemes='["go","python"]'
elif [[ "$has_go" == "true" ]]; then
api_proxy_schemes='["go"]'
else
elif [[ "$has_python" == "true" ]]; then
api_proxy_schemes='["python"]'
elif [[ "$has_web" == "true" ]]; then
api_proxy_schemes='["web"]'
else
api_proxy_schemes='["go","python"]'
fi
echo "has_go_changes=${has_go}" >> $GITHUB_OUTPUT
@@ -333,6 +337,7 @@ jobs:
) 9>"${BUILD_LOCK_FILE}"
- name: Prepare Python test environment
if: env.API_PROXY_SCHEME != 'web'
run: |
uv sync --python 3.13 --group test --frozen
uv pip install -e sdk/python
@@ -517,6 +522,7 @@ jobs:
source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} --junitxml=pytest-infinity-sdk.xml --cov=sdk/python/ragflow_sdk --cov-branch --cov-report=xml:coverage-infinity-sdk.xml test/testcases/test_sdk_api 2>&1 | tee infinity_sdk_test.log
- name: Run New RESTFUL api tests against Infinity
if: env.API_PROXY_SCHEME != 'web'
run: |
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
svc_ready=0
@@ -813,6 +819,7 @@ jobs:
) 9>"${BUILD_LOCK_FILE}"
- name: Prepare Python test environment
if: env.API_PROXY_SCHEME != 'web'
run: |
uv sync --python 3.13 --group test --frozen
uv pip install -e sdk/python
@@ -997,6 +1004,7 @@ jobs:
source .venv/bin/activate && set -o pipefail; pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} --junitxml=pytest-es-sdk.xml --cov=sdk/python/ragflow_sdk --cov-branch --cov-report=xml:coverage-es-sdk.xml test/testcases/test_sdk_api 2>&1 | tee es_sdk_test.log
- name: Run New RESTFUL api tests against Elasticsearch
if: env.API_PROXY_SCHEME != 'web'
run: |
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
svc_ready=0