Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

add assertion to tests discovery

Nick Sweeting06ee004a882e
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index ea4bae638..04a2311f1 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -26,6 +26,12 @@ jobs:
echo "FILENAME_LIST=$FILENAME_LIST" >> $GITHUB_OUTPUT
echo "$FILENAME_LIST"
# https://code.dblock.org/2021/09/03/generating-task-matrix-by-looping-over-repo-files-with-github-actions.html
+ - name: Check that at least one test file is found
+ run: |
+ if [ -z "${{ steps.list_test_files.outputs.FILENAME_LIST }}" ]; then
+ echo "No test files found" > /dev/stderr
+ exit 1
+ fi
tests:
name: ${{matrix.test_filename}}