-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.39 KB
/
Copy pathdocs-screenshots.yml
File metadata and controls
50 lines (42 loc) · 1.39 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
name: Docs Screenshots
on:
workflow_dispatch:
jobs:
generate-doc-screenshots:
name: Generate docs UI screenshots
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
python-version: "3.12"
enable-cache: true
# PySide6 needs EGL/XCB deps even with QT_QPA_PLATFORM=offscreen.
- name: Install Qt EGL/XCB dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libegl1 \
libgl1 \
libxkbcommon0 \
libdbus-1-3 \
fontconfig \
fonts-dejavu-core
- name: Sync dev dependencies
run: |
uv sync --locked --dev
- name: Generate screenshot artifacts
env:
QT_QPA_PLATFORM: offscreen
DOCS_SCREENSHOT_DIR: docs/_static
# Offscreen on Linux: theme helper swaps QSS to DejaVu Sans (see screenshot_helpers).
run: |
uv run pytest tests/docs/test_docs_screenshots.py -m docs_screenshot
- name: Upload screenshots artifact
uses: actions/upload-artifact@v7
with:
name: docs-screenshots-${{ github.sha }}
path: docs/_build/screenshots
if-no-files-found: error