Add Unit Tests (#4)
This commit is contained in:
42
.github/workflows/test_browser_use_fullstack_runtime.yml
vendored
Normal file
42
.github/workflows/test_browser_use_fullstack_runtime.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: browser_use_fullstack_runtime_test
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 */3 * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.10']
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Debug directory structure
|
||||
run: |
|
||||
# ✅ Show actual directory structure
|
||||
echo "Current directory: $(pwd)"
|
||||
ls -la
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
# ✅ Use validated path from debug output
|
||||
cd browser_use/browser_use_fullstack_runtime/backend
|
||||
pip install pytest pytest-asyncio
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
env:
|
||||
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
|
||||
run: |
|
||||
# ✅ Use validated path from debug output
|
||||
python -m pytest tests/browser_use_fullstack_runtime_test.py -v
|
||||
Reference in New Issue
Block a user