Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

separate comment

Isaac Millerc17c14f1118c
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 83c11eb10..2e9451d39 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -23,8 +23,14 @@ jobs:
with:
args: --fix-only --exit-non-zero-on-fix
continue-on-error: true # Continue to next step if this step fails
- - name: Check outcome
- if: ${{ failure() }}
+
+ comment_if_ruff_fail:
+ name: Comment on Ruff Failure
+ runs-on: ubuntu-latest
+ needs: fix
+ if: ${{ failure() && needs.fix.result == 'failure' }}
+ steps:
+ - name: Comment on Ruff Failure
uses: actions/github-script@v6
with:
script: |
@@ -37,7 +43,6 @@ jobs:
body: message
});
core.setFailed("Automated Ruff fixes failed. A comment has been posted on the PR.");
-
test:
name: Run Tests
runs-on: ubuntu-latest