-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.42 KB
/
verify.yml
File metadata and controls
48 lines (46 loc) · 1.42 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
name: Verify
on:
push:
pull_request:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: false
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: uv sync --all-groups
- name: Pin Wrangler for local Worker runtime
run: npm install --global wrangler@4.90.0
- name: Start local Worker for browser checks
run: |
uv run --group workers pywrangler dev --port 9696 > /tmp/pythonbyexample-ci.log 2>&1 &
for i in $(seq 1 180); do
if grep -q 'Ready on http://localhost:9696' /tmp/pythonbyexample-ci.log; then
exit 0
fi
if grep -E 'failed to start|FileNotFoundError|Traceback|Address already' /tmp/pythonbyexample-ci.log; then
cat /tmp/pythonbyexample-ci.log
exit 1
fi
sleep 1
done
cat /tmp/pythonbyexample-ci.log
exit 1
- name: Verify
env:
CHROME_PATH: /usr/bin/google-chrome
run: |
make verify
scripts/check_example_migration_parity.py
scripts/format_examples.py --check
make verify-python-version VERSION=3.13
git diff --check