Skip to content

Commit

Permalink
infra: individual template CI
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Dec 13, 2023
1 parent ea99612 commit 38c17ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 37 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
dirs_to_run.update(
(f"libs/partners/{partner_dir}", "libs/langchain", "libs/experimental")
)
elif file.startswith("templates/"):
template = file.split("/")[1]
dirs_to_run.add(f"templates/{template}")
elif "libs/langchain" in file:
dirs_to_run.update(("libs/langchain", "libs/experimental"))
elif "libs/experimental" in file:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_all_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
secrets: inherit

compile-integration-tests:
if: ${{ ! startsWith(inputs.working-directory, 'templates/') }}
uses: ./.github/workflows/_compile_integration_test.yml
with:
working-directory: ${{ inputs.working-directory }}
Expand All @@ -72,7 +73,7 @@ jobs:
defaults:
run:
working-directory: ${{ inputs.working-directory }}
if: ${{ ! startsWith(inputs.working-directory, 'libs/partners/') }}
if: ${{ ! startsWith(inputs.working-directory, 'libs/partners/') && ! startsWith(inputs.working-directory, 'templates/') }}
steps:
- uses: actions/checkout@v4

Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/templates_ci.yml

This file was deleted.

0 comments on commit 38c17ef

Please sign in to comment.