Skip to content

Commit 11332de

Browse files
committed
ci: run python lint/test on pyproject.toml/uv.lock changes too (CM-1318)
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent d640e6e commit 11332de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/backend-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Check for Python file changes
7878
id: changes
7979
run: |
80-
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "^services/apps/git_integration/.*\.py$"; then
80+
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -qE "^services/apps/git_integration/.*(\.py|pyproject\.toml|uv\.lock)$"; then
8181
echo "python_changed=true" >> $GITHUB_OUTPUT
8282
else
8383
echo "python_changed=false" >> $GITHUB_OUTPUT
@@ -120,7 +120,7 @@ jobs:
120120
- name: Check for Python file changes
121121
id: changes
122122
run: |
123-
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -q "^services/apps/mailing_list_integration/.*\.py$"; then
123+
if git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -qE "^services/apps/mailing_list_integration/.*(\.py|pyproject\.toml|uv\.lock)$"; then
124124
echo "python_changed=true" >> $GITHUB_OUTPUT
125125
else
126126
echo "python_changed=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)