Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,46 @@ jobs:

- name: Run pre-commit hooks
run: pre-commit run --all-files

launch:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.13']
steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Prepare Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb libegl1 libqt6gui6 libxcb-cursor0

- name: Install PEtabGUI
run: |
python -m pip install --upgrade pip
pip install .

- name: Launch GUI
# Ensure that we can launch the GUI
run: |
echo "Launching Xvfb"
Xvfb :99 -screen 0 1920x1200x24 &
export DISPLAY=:99
echo "Running petab_gui --version"
petab_gui --version
echo "Running petab_gui without arguments"
petab_gui &
echo $! > petabgui_pid.txt
sleep 10
kill $(cat petabgui_pid.txt)
echo "Running petab_gui with example problem"
petab_gui example/problem.yaml &
echo $! > petabgui_pid.txt
sleep 10
kill $(cat petabgui_pid.txt)