mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-10 23:49:02 +08:00
CI: add daily test (#7548)
### What problem does this PR solve? Add scheduled workflow for daily HTTP API full tests Configure cron job to trigger at 16:00:00Z(00:00:00+08:00) ### Type of change - [X] CI update
This commit is contained in:
parent
c2c63b07c3
commit
34ec550014
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
@ -15,6 +15,8 @@ on:
|
|||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- '*.mdx'
|
- '*.mdx'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 16 * * *' # This schedule runs every 16:00:00Z(00:00:00+08:00)
|
||||||
|
|
||||||
# https://docs.github.com/en/actions/using-jobs/using-concurrency
|
# https://docs.github.com/en/actions/using-jobs/using-concurrency
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -106,7 +108,12 @@ jobs:
|
|||||||
echo "Waiting for service to be available..."
|
echo "Waiting for service to be available..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && pytest -s --tb=short --level=p2
|
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
|
||||||
|
export HTTP_API_TEST_LEVEL=p3
|
||||||
|
else
|
||||||
|
export HTTP_API_TEST_LEVEL=p2
|
||||||
|
fi
|
||||||
|
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL}
|
||||||
|
|
||||||
- name: Stop ragflow:nightly
|
- name: Stop ragflow:nightly
|
||||||
if: always() # always run this step even if previous steps failed
|
if: always() # always run this step even if previous steps failed
|
||||||
@ -145,7 +152,12 @@ jobs:
|
|||||||
echo "Waiting for service to be available..."
|
echo "Waiting for service to be available..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && DOC_ENGINE=infinity pytest -s --tb=short --level=p2
|
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
|
||||||
|
export HTTP_API_TEST_LEVEL=p3
|
||||||
|
else
|
||||||
|
export HTTP_API_TEST_LEVEL=p2
|
||||||
|
fi
|
||||||
|
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL}
|
||||||
|
|
||||||
- name: Stop ragflow:nightly
|
- name: Stop ragflow:nightly
|
||||||
if: always() # always run this step even if previous steps failed
|
if: always() # always run this step even if previous steps failed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user