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.

test: triggering tests on changes and allow cancelling in-progress CI test jobs (#4743)

Bowen Liang6dd0e07af896
diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml
index bfb10546390..6a45b49588e 100644
--- a/.github/workflows/api-tests.yml
+++ b/.github/workflows/api-tests.yml
@@ -4,9 +4,16 @@ on:
pull_request:
branches:
- main
+ paths:
+ - api/**
+
+concurrency:
+ group: api-tests-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
jobs:
test:
+ name: API Tests
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index bdbc22b489b..e008e1e0a1d 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -6,7 +6,7 @@ on:
- main
concurrency:
- group: dep-${{ github.head_ref || github.run_id }}
+ group: style-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
diff --git a/.github/workflows/tool-test-sdks.yaml b/.github/workflows/tool-test-sdks.yaml
index 575ead4b3be..fb4bcb9d66f 100644
--- a/.github/workflows/tool-test-sdks.yaml
+++ b/.github/workflows/tool-test-sdks.yaml
@@ -4,6 +4,13 @@ on:
pull_request:
branches:
- main
+ paths:
+ - sdks/**
+
+concurrency:
+ group: sdk-tests-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build:
name: unit test for Node.js SDK