Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Skip none existing tests
Magnus Müller616c81e435dd
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yamlindex 1d8a1f6ac..2ae38f5e8 100644--- a/.github/workflows/test.yaml+++ b/.github/workflows/test.yaml@@ -28,9 +28,15 @@ jobs:- uses: actions/checkout@v4- id: lsgreprun: |+ echo "🔍 Discovering test files..."+ echo "Current working directory: $(pwd)"+ echo "Available test files:"+ ls -la tests/ci/test_*.py || echo "No test files found"+ echo ""+TEST_FILENAMES="$(ls tests/ci/test_*.py | sed 's|^tests/ci/||' | sed 's|\.py$||' | jq -R -s -c 'split("\n")[:-1]')"echo "TEST_FILENAMES=${TEST_FILENAMES}" >> "$GITHUB_OUTPUT"- echo "$TEST_FILENAMES"+ echo "📋 Discovered test matrix: $TEST_FILENAMES"# 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 foundrun: |@@ -96,7 +102,19 @@ jobs:restore-keys: |${{ runner.os }}-browseruse-extensions-- - run: pytest tests/ci/${{ matrix.test_filename }}.py+ - name: Check if test file exists and run it+ run: |+ TEST_FILE="tests/ci/${{ matrix.test_filename }}.py"+ if [ -f "$TEST_FILE" ]; then+ echo "✅ Running test file: $TEST_FILE"+ pytest "$TEST_FILE"+ else+ echo "❌ Test file not found: $TEST_FILE"+ echo "This might be due to cached test discovery or the file was removed."+ echo "Available test files:"+ ls -la tests/ci/test_*.py || echo "No test files found"+ exit 1+ fievaluate-tasks:runs-on: ubuntu-latest