Skip to content

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

ci: split into parallel syntax, lint & type-check jobs

dha-aabe8585a83f24
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 837e4044a..5ba22672d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,13 +3,23 @@ on:
push:
pull_request:
workflow_dispatch:
+
jobs:
- ruff:
+ lint:
+ name: lint/${{ matrix.task }}
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ task: [syntax, style, typecheck]
+
steps:
- uses: actions/checkout@v4
- - uses: astral-sh/setup-uv@v5
- - run: uv run ruff check --no-fix --select PLE
- - run: uv run ruff format
- - run: uv run pre-commit run --all-files
- - run: uv run pyright
+ - name: Setup uv and cache packages
+ uses: astral-sh/setup-uv@v5
+ - name: Run lint task
+ run: |
+ case "${{ matrix.task }}" in
+ syntax) uv run ruff check --no-fix --select PLE ;;
+ style) uv run ruff format && uv run pre-commit run --all-files ;;
+ typecheck) uv run pyright ;;
+ esac