Skip to content

Commit 0e77224

Browse files
committed
CI: Don't skip workflow runs for Dependabot
The GHA workflows inherited by langchain-postgres invoke linters and software tests only when needed, based on a diff of the source tree, detecting if something has changed. By extending the list of files of interest to include Python project metadata files `pyproject.toml` and `poetry.lock`, this change ensures that dependency updates submitted by Dependabot will also invoke the software tests on CI.
1 parent 14c4e51 commit 0e77224

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/scripts/check_diff.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
if any(
2121
file.startswith(dir_)
2222
for dir_ in (
23+
"pyproject.toml",
24+
"poetry.lock",
2325
".github/workflows",
2426
".github/tools",
2527
".github/actions",
@@ -28,6 +30,7 @@
2830
):
2931
# add all LIB_DIRS for infra changes
3032
dirs_to_run["test"].update(LIB_DIRS)
33+
dirs_to_run["lint"].update(LIB_DIRS)
3134

3235
if any(file.startswith(dir_) for dir_ in LIB_DIRS):
3336
for dir_ in LIB_DIRS:

0 commit comments

Comments
 (0)