Skip to content

Commit d6010ca

Browse files
committed
GHA: test app launch
The minimum testing we can do is checking that the GUI can be launched.
1 parent adf8e94 commit d6010ca

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
merge_group:
7+
8+
jobs:
9+
launch:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v5
14+
15+
- name: Prepare Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: "3.11"
19+
20+
- name: Install dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y xvfb libegl1 libqt6gui6 libxcb-cursor0
24+
25+
- name: Install PEtabGUI
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install .
29+
30+
- name: Launch GUI
31+
# Ensure that we can launch the GUI
32+
run: |
33+
echo "Launching Xvfb"
34+
Xvfb :99 -screen 0 1920x1200x24 &
35+
export DISPLAY=:99
36+
echo "Running petab_gui --version"
37+
petab_gui --version
38+
echo "Running petab_gui without arguments"
39+
petab_gui &
40+
echo $! > petabgui_pid.txt
41+
sleep 10
42+
kill $(cat petabgui_pid.txt)
43+
echo "Running petab_gui with example problem"
44+
petab_gui example/problem.yaml &
45+
echo $! > petabgui_pid.txt
46+
sleep 10
47+
kill $(cat petabgui_pid.txt)

0 commit comments

Comments
 (0)