From a95f22fa88cfca760fb91296b9a9910b2dac09f4 Mon Sep 17 00:00:00 2001 From: Lynn Date: Mon, 22 Dec 2025 21:33:08 +0800 Subject: [PATCH] Feat: output intinity test log (#12097) ### What problem does this PR solve? Output log to file when run infinity tests. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a5bdc1735..5786cab69 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -247,7 +247,7 @@ jobs: echo "Waiting for service to be available..." sleep 5 done - source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api + source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api > infinity_sdk_test.log - name: Run frontend api tests against Infinity run: | @@ -256,7 +256,7 @@ jobs: echo "Waiting for service to be available..." sleep 5 done - source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short sdk/python/test/test_frontend_api/get_email.py sdk/python/test/test_frontend_api/test_dataset.py + source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short sdk/python/test/test_frontend_api/get_email.py sdk/python/test/test_frontend_api/test_dataset.py > infinity_api_test.log - name: Run http api tests against Infinity run: | @@ -265,7 +265,7 @@ jobs: echo "Waiting for service to be available..." sleep 5 done - source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api + source .venv/bin/activate && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api > infinity_http_api_test.log - name: Stop ragflow:nightly if: always() # always run this step even if previous steps failed