Skip to content

feat: add browser-use actions, screenshot, session management #4

feat: add browser-use actions, screenshot, session management

feat: add browser-use actions, screenshot, session management #4

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-cov
- name: Run tests
env:
BNCA_API_KEY: ${{ secrets.BNCA_API_KEY }}
run: |
pytest tests/ --cov=browsernative --cov-report=xml || echo "Tests not yet implemented"
- name: Upload coverage
uses: codecov/codecov-action@v3
if: matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella