hkblockchaintechnology commited on
Commit
839c1d7
·
verified ·
1 Parent(s): b75ee05

Publish .github/ from marimo

Browse files
Files changed (1) hide show
  1. .github/workflows/live-desktop.yml +23 -1
.github/workflows/live-desktop.yml CHANGED
@@ -1,10 +1,14 @@
1
- name: live desktop
2
 
3
  # Real-OS coverage for the parts a synthetic screenshot cannot reach: capture
4
  # backends, native input, and DPI scaling. Linux runs the live test under Xvfb,
5
  # Windows runs it on an interactive desktop session.
6
  #
7
  # Trigger it by hand from the Actions tab, or on every push to main.
 
 
 
 
8
 
9
  on:
10
  workflow_dispatch:
@@ -32,6 +36,15 @@ jobs:
32
  export DISPLAY=:99
33
  python -m tiny_computer_agent --doctor --live || true
34
  TINY_COMPUTER_AGENT_LIVE_TEST=1 python -m pytest tests/test_live_desktop.py -q -rA
 
 
 
 
 
 
 
 
 
35
 
36
  windows:
37
  runs-on: windows-latest
@@ -53,6 +66,15 @@ jobs:
53
  env:
54
  TINY_COMPUTER_AGENT_LIVE_TEST: "1"
55
  run: python -m pytest tests/test_live_desktop.py -q -rA
 
 
 
 
 
 
 
 
 
56
 
57
  macos:
58
  runs-on: macos-latest
 
1
+ name: live desktop + capability gallery
2
 
3
  # Real-OS coverage for the parts a synthetic screenshot cannot reach: capture
4
  # backends, native input, and DPI scaling. Linux runs the live test under Xvfb,
5
  # Windows runs it on an interactive desktop session.
6
  #
7
  # Trigger it by hand from the Actions tab, or on every push to main.
8
+ #
9
+ # The same jobs also build the capability gallery (showcase.py) on each real OS,
10
+ # so the screenshots in the model card can be regenerated - including on Windows,
11
+ # which the card itself was not built on.
12
 
13
  on:
14
  workflow_dispatch:
 
36
  export DISPLAY=:99
37
  python -m tiny_computer_agent --doctor --live || true
38
  TINY_COMPUTER_AGENT_LIVE_TEST=1 python -m pytest tests/test_live_desktop.py -q -rA
39
+ - name: Capability gallery on a real X server
40
+ run: |
41
+ export DISPLAY=:99
42
+ python showcase.py
43
+ - name: Upload the Linux gallery
44
+ uses: actions/upload-artifact@v4
45
+ with:
46
+ name: gallery-linux
47
+ path: gallery/*.png
48
 
49
  windows:
50
  runs-on: windows-latest
 
66
  env:
67
  TINY_COMPUTER_AGENT_LIVE_TEST: "1"
68
  run: python -m pytest tests/test_live_desktop.py -q -rA
69
+ - name: Capability gallery on a real Windows desktop
70
+ # The point of this job: the same showcase.py, on Windows pixels.
71
+ continue-on-error: true
72
+ run: python showcase.py
73
+ - name: Upload the Windows gallery
74
+ uses: actions/upload-artifact@v4
75
+ with:
76
+ name: gallery-windows
77
+ path: gallery/*.png
78
 
79
  macos:
80
  runs-on: macos-latest