Skip to content

Commit d9f9e70

Browse files
committed
Update ci
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
1 parent 87f18dc commit d9f9e70

1 file changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/tests.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -197,49 +197,49 @@ jobs:
197197
echo -e "COMPOSE_PROFILES=\${COMPOSE_PROFILES},tei-cpu" >> docker/.env
198198
echo -e "TEI_MODEL=BAAI/bge-small-en-v1.5" >> docker/.env
199199
echo -e "RAGFLOW_IMAGE=${RAGFLOW_IMAGE}" >> docker/.env
200-
sed -i '1i DOC_ENGINE=infinity' docker/.env
200+
# sed -i '1i DOC_ENGINE=infinity' docker/.env
201201
echo "HOST_ADDRESS=http://host.docker.internal:${SVR_HTTP_PORT}" >> ${GITHUB_ENV}
202202

203203
sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} up -d
204204
uv sync --python 3.12 --only-group test --no-default-groups --frozen && uv pip install sdk/python --group test
205205

206-
- name: Run sdk tests against Infinity
207-
run: |
208-
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
209-
until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
210-
echo "Waiting for service to be available..."
211-
sleep 5
212-
done
213-
source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api 2>&1 | tee infinity_sdk_test.log
214-
215-
- name: Run frontend api tests against Infinity
216-
run: |
217-
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
218-
until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
219-
echo "Waiting for service to be available..."
220-
sleep 5
221-
done
222-
source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short sdk/python/test/test_frontend_api/get_email.py sdk/python/test/test_frontend_api/test_dataset.py 2>&1 | tee infinity_api_test.log
223-
224-
- name: Run http api tests against Infinity
225-
run: |
226-
export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
227-
until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
228-
echo "Waiting for service to be available..."
229-
sleep 5
230-
done
231-
source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api 2>&1 | tee infinity_http_api_test.log
232-
233-
- name: Stop ragflow:nightly
234-
if: always() # always run this step even if previous steps failed
235-
run: |
236-
sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} down -v || true
237-
sudo docker ps -a --filter "label=com.docker.compose.project=${GITHUB_RUN_ID}" -q | xargs -r sudo docker rm -f
238-
239-
- name: Start ragflow:nightly
240-
run: |
241-
sed -i '1i DOC_ENGINE=elasticsearch' docker/.env
242-
sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} up -d
206+
# - name: Run sdk tests against Infinity
207+
# run: |
208+
# export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
209+
# until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
210+
# echo "Waiting for service to be available..."
211+
# sleep 5
212+
# done
213+
# source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api 2>&1 | tee infinity_sdk_test.log
214+
#
215+
# - name: Run frontend api tests against Infinity
216+
# run: |
217+
# export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
218+
# until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
219+
# echo "Waiting for service to be available..."
220+
# sleep 5
221+
# done
222+
# source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short sdk/python/test/test_frontend_api/get_email.py sdk/python/test/test_frontend_api/test_dataset.py 2>&1 | tee infinity_api_test.log
223+
#
224+
# - name: Run http api tests against Infinity
225+
# run: |
226+
# export http_proxy=""; export https_proxy=""; export no_proxy=""; export HTTP_PROXY=""; export HTTPS_PROXY=""; export NO_PROXY=""
227+
# until sudo docker exec ${RAGFLOW_CONTAINER} curl -s --connect-timeout 5 ${HOST_ADDRESS} > /dev/null; do
228+
# echo "Waiting for service to be available..."
229+
# sleep 5
230+
# done
231+
# source .venv/bin/activate && set -o pipefail; DOC_ENGINE=infinity pytest -x -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api 2>&1 | tee infinity_http_api_test.log
232+
#
233+
# - name: Stop ragflow:nightly
234+
# if: always() # always run this step even if previous steps failed
235+
# run: |
236+
# sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} down -v || true
237+
# sudo docker ps -a --filter "label=com.docker.compose.project=${GITHUB_RUN_ID}" -q | xargs -r sudo docker rm -f
238+
#
239+
# - name: Start ragflow:nightly
240+
# run: |
241+
# sed -i '1i DOC_ENGINE=elasticsearch' docker/.env
242+
# sudo docker compose -f docker/docker-compose.yml -p ${GITHUB_RUN_ID} up -d
243243

244244
- name: Run sdk tests against Elasticsearch
245245
run: |

0 commit comments

Comments
 (0)