Sync Extension: v0.10.4 #71
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.11'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Playwright browsers | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install playwright | |
| playwright install chromium | |
| - name: Install dependencies | |
| run: | | |
| pip install -e ".[dev]" | |
| - name: Build extension (if needed) | |
| if: runner.os != 'Windows' | |
| shell: bash | |
| run: | | |
| if [ -d "../sentience-chrome" ]; then | |
| cd ../sentience-chrome && ./build.sh || echo "Extension build skipped (may not be available in CI)" | |
| else | |
| echo "Extension directory not found, skipping build" | |
| fi | |
| - name: Run tests | |
| run: | | |
| pytest tests/ -v | |
| env: | |
| CI: true | |