From 0e77224f906a02494e23a81cc820b033520ea47f Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 16 Dec 2024 00:42:21 +0100 Subject: [PATCH] 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. --- .github/scripts/check_diff.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/scripts/check_diff.py b/.github/scripts/check_diff.py index 10dc7ea..a7eec19 100644 --- a/.github/scripts/check_diff.py +++ b/.github/scripts/check_diff.py @@ -20,6 +20,8 @@ if any( file.startswith(dir_) for dir_ in ( + "pyproject.toml", + "poetry.lock", ".github/workflows", ".github/tools", ".github/actions", @@ -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: