Skip to content

Commit

Permalink
fix(DX): Don't run CI if there are no tests
Browse files Browse the repository at this point in the history
New apps keep burning CI just to install the app and run nothing.
This adds a small check before install to avoid unnecessary CI runs.
  • Loading branch information
ankush committed May 17, 2024
1 parent afed21e commit 1b0ad41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frappe/utils/boilerplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ def _create_parent_folder_if_not_exists(self):
- name: Clone
uses: actions/checkout@v3
- name: Find tests
run: |
echo "Finding tests"
grep -rn "def test" > /dev/null
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 1b0ad41

Please sign in to comment.