-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.34 KB
/
ux_tour.yml
File metadata and controls
56 lines (47 loc) · 1.34 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
name: UX Tour Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
jobs:
ux-tour:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run UX Tour
run: python scripts/ux_tour.py
env:
OFFLINE_MODE: '0'
- name: Upload test report
if: always()
uses: actions/upload-artifact@v3
with:
name: ux-tour-report
path: docs/ui_tour/**/test_report.txt
- name: Upload screenshots
if: always()
uses: actions/upload-artifact@v3
with:
name: ux-tour-screenshots
path: docs/ui_tour/**/*.png
- name: Check test results
run: |
$report = Get-Content -Path (Get-ChildItem -Path docs/ui_tour -Recurse -Filter test_report.txt | Select-Object -Last 1).FullName -Raw
if ($report -match "Failed: (\d+)") {
$failed = [int]$matches[1]
if ($failed -gt 0) {
Write-Error "UX Tour had $failed failing tests"
exit 1
}
}
Write-Output "All UX Tour tests passed!"