Skip to content

Commit 16f84c1

Browse files
authored
Merge pull request #11 from sccn/KAN-35-eeglab-test-repo-github-actions-broken
Setting up virtual display for R2025a
2 parents 53da659 + 666c053 commit 16f84c1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
- name: Git LFS Pull
5656
if: steps.cache.outputs.cache-hit != 'true'
5757
run: git lfs pull
58+
59+
# Add virtual display support for graphical tests
60+
- name: Setup Xvfb for virtual display
61+
run: |
62+
sudo apt-get update -qq
63+
sudo apt-get install -y xvfb x11-utils libxkbcommon-x11-0
64+
sudo Xvfb :99 -screen 0 1920x1080x24 > /dev/null 2>&1 &
65+
echo "DISPLAY=:99" >> $GITHUB_ENV
66+
sleep 2
5867
5968
# Sets up MATLAB on the GitHub Actions runner
6069
- name: Setup MATLAB

0 commit comments

Comments
 (0)