Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
e2e.yml · 2.4 KB · 62 lines
1name: E2E
2
3on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8
9jobs:
10 e2e:
11 name: Browser end-to-end (generated UI)
12 runs-on: ubuntu-latest
13
14 steps:
15 - name: Check out repository
16 uses: actions/checkout@v4
17
18 - name: Set up Python
19 uses: actions/setup-python@v5
20 with:
21 python-version: "3.12"
22
23 - name: Install test dependencies
24 # websockets (not just uvicorn/pytest/pytest-playwright) matters
25 # here specifically: the generated list (window.dbbasicList)
26 # refreshes ONLY over a live /ws push -- there is no polling
27 # fallback for it (unlike the nav bell's 20s poll) -- so without
28 # it the "new record appears without a reload" tests would flake
29 # or hang waiting on a socket uvicorn can't upgrade.
30 run: |
31 python -m pip install --upgrade pip
32 python -m pip install uvicorn websockets pytest pytest-playwright
33
34 - name: Install browsers
35 # Chromium drives test_generated_ui.py; WebKit drives
36 # test_talk_voice.py specifically because it is the iPad's real
37 # engine family -- that choice is load-bearing (it is what let
38 # the harness catch iOS-only failures: the exclusive-microphone
39 # theft, the gesture-locked audio element) and switching it to
40 # Chromium to dodge an install gap would throw away the reason
41 # the file exists. Retried like docker.yml's compose pull: this
42 # downloads browser binaries from Playwright's CDN, which times
43 # out on GitHub runners often enough to red-X main for reasons
44 # that have nothing to do with the commit. Three attempts with
45 # backoff; a real install failure still fails all three and
46 # reports normally.
47 run: |
48 for attempt in 1 2 3; do
49 echo "::group::playwright install chromium webkit (attempt ${attempt})"
50 if python -m playwright install --with-deps chromium webkit; then
51 echo "::endgroup::"
52 exit 0
53 fi
54 echo "::endgroup::"
55 echo "attempt ${attempt} failed"
56 [ "${attempt}" -lt 3 ] && sleep $((attempt * 15))
57 done
58 echo "playwright install failed three times -- not a transient CDN blip"
59 exit 1
60
61 - name: Run browser end-to-end tests
62 run: python3 -m pytest -m e2e tests/e2e -q