-
Notifications
You must be signed in to change notification settings - Fork 11
137 lines (117 loc) · 3.76 KB
/
Copy pathtest.yml
File metadata and controls
137 lines (117 loc) · 3.76 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Tests
on:
workflow_dispatch:
push:
branches: [main, edit-base]
pull_request:
branches: [main, edit-base]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: |
pyproject.toml
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libegl1 libgl1 libxkbcommon0 libpulse0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run tests
env:
QT_QPA_PLATFORM: offscreen
NUMBA_DISABLE_JIT: "1"
run: |
python tools/check_architecture.py
python -m pytest tests/ \
--ignore=tests/gui \
--ignore=tests/ui \
--tb=short -v
startup-contracts:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libpulse0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run startup contracts with normal interpreter shutdown
env:
QT_QPA_PLATFORM: offscreen
NUMBA_DISABLE_JIT: "1"
run: >-
python -m pytest -q
tests/application/test_bootstrap_settings.py
tests/application/test_library_probe.py
tests/application/test_library_session.py
tests/application/test_runtime_context.py
tests/gui/test_main.py
tests/gui/test_startup_orchestrator.py
tests/gui/test_gui_startup_job_queue.py
tests/gui/test_startup_shutdown_smoke.py
tests/test_library_bind_double_scan.py
tests/test_startup_benchmark.py
tests/test_startup_profile.py
tests/test_appimage_packaging.py
tests/test_macos_detection_report.py
detail-core-contracts:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libpulse0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
- name: Run Detail core contracts
env:
QT_QPA_PLATFORM: offscreen
NUMBA_DISABLE_JIT: "1"
run: >-
python -m pytest -q
tests/gui/test_detail_profile.py
tests/gui/test_detail_pipeline.py
tests/gui/test_detail_request_scheduler.py
tests/gui/test_detail_decode_backend.py
tests/gui/test_detail_surface_cache.py
tests/gui/test_detail_render_coordinator.py