Skip to content

Commit

Permalink
CI: Don't skip workflow runs for Dependabot
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amotl committed Dec 15, 2024
1 parent 14c4e51 commit 0e77224
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
if any(
file.startswith(dir_)
for dir_ in (
"pyproject.toml",
"poetry.lock",
".github/workflows",
".github/tools",
".github/actions",
Expand All @@ -28,6 +30,7 @@
):
# add all LIB_DIRS for infra changes
dirs_to_run["test"].update(LIB_DIRS)
dirs_to_run["lint"].update(LIB_DIRS)

if any(file.startswith(dir_) for dir_ in LIB_DIRS):
for dir_ in LIB_DIRS:
Expand Down

0 comments on commit 0e77224

Please sign in to comment.