Repository navigation
69 lines (64 loc) · 1.75 KB
/
Copy pathcloud-starters.yml
File metadata and controls
69 lines (64 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: cloud-starters
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- 'cloud-starters/**'
- '.github/workflows/cloud-starters.yml'
pull_request:
paths:
- 'cloud-starters/**'
- '.github/workflows/cloud-starters.yml'
schedule:
# Weekly: catch breaking releases of browser-use-sdk, browser-use, Playwright, Puppeteer
- cron: '17 6 * * 1'
workflow_dispatch:
jobs:
typescript:
name: typecheck (${{ matrix.starter }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
starter: [playwright-ts, puppeteer-ts]
defaults:
run:
working-directory: cloud-starters/${{ matrix.starter }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm install --no-audit --no-fund
- run: npm run typecheck
python:
name: typecheck (${{ matrix.starter }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
starter:
- playwright-python
- agent-python
- v4-agent-python
- parallel-python
- login-2fa-python
- proxy-scrape-python
defaults:
run:
working-directory: cloud-starters/${{ matrix.starter }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Install the starter's dependencies
run: |
cp pyproject.toml.template pyproject.toml
uv sync --python 3.12
- name: Type-check against the installed SDK
run: uvx pyright --pythonpath .venv/bin/python main.py