Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

ci: reduce API unit tests to three shards (#42390)

Stephen Zhou8006e8e13ded
diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml
index 1e0d0b8f541..15c245ff4e9 100644
--- a/.github/workflows/api-tests.yml
+++ b/.github/workflows/api-tests.yml
@@ -31,9 +31,8 @@ jobs:
- 1
- 2
- 3
- - 4
shardTotal:
- - 4
+ - 3
steps:
- name: Checkout code
@@ -200,8 +199,8 @@ jobs:
mapfile -t unit_coverage < <(find coverage-data -type f -name 'coverage-unit-*' -print | sort)
mapfile -t integration_coverage < <(find coverage-data -type f -name 'coverage-integration-*' -print | sort)
- if [[ "${#unit_coverage[@]}" -ne 4 ]]; then
- echo "expected 4 unit coverage artifacts, found ${#unit_coverage[@]}" >&2
+ if [[ "${#unit_coverage[@]}" -ne 3 ]]; then
+ echo "expected 3 unit coverage artifacts, found ${#unit_coverage[@]}" >&2
exit 1
fi
if [[ "${#integration_coverage[@]}" -ne 4 ]]; then