RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix workflows
Zhichang Yu221947acc410
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 39c5261044..a61492238d 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -12,7 +12,7 @@ on:# The only difference between pull_request and pull_request_target is the context in which the workflow runs:# — pull_request_target workflows use the workflow files from the default branch, and secrets are available.# — pull_request workflows use the workflow files from the pull request branch, and secrets are unavailable.- pull_request_target:+ pull_request:types: [ synchronize, ready_for_review ]paths-ignore:- 'docs/**'@@ -31,7 +31,7 @@ jobs:name: ragflow_tests# https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution# https://github.com/orgs/community/discussions/26261- if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'ci') }}+ if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci')) }}runs-on: [ "self-hosted", "ragflow-test" ]steps:# https://github.com/hmarr/debug-action@@ -53,7 +53,7 @@ jobs:- name: Check workflow duplicationif: ${{ !cancelled() && !failure() }}run: |- if [[ ${GITHUB_EVENT_NAME} != "pull_request_target" && ${GITHUB_EVENT_NAME} != "schedule" ]]; then+ if [[ ${GITHUB_EVENT_NAME} != "pull_request" && ${GITHUB_EVENT_NAME} != "schedule" ]]; thenHEAD=$(git rev-parse HEAD)# Find a PR that introduced a given commitgh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"@@ -78,7 +78,7 @@ jobs:fififi- elif [[ ${GITHUB_EVENT_NAME} == "pull_request_target" ]]; then+ elif [[ ${GITHUB_EVENT_NAME} == "pull_request" ]]; thenPR_NUMBER=${{ github.event.pull_request.number }}PR_SHA_FP=${RUNNER_WORKSPACE_PREFIX}/artifacts/${GITHUB_REPOSITORY}/PR_${PR_NUMBER}# Calculate the hash of the current workspace content@@ -98,7 +98,7 @@ jobs:- name: Check comments of changed Python filesif: ${{ false }}run: |- if [[ ${{ github.event_name }} == 'pull_request_target' ]]; then+ if [[ ${{ github.event_name }} == 'pull_request' || ${{ github.event_name }} == 'pull_request_target' ]]; thenCHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \| grep -E '\.(py)$' || true)