Skip to content

Commit adb6229

Browse files
committed
Merge branch 'master' of github.com:sccn/eeglab_tests
2 parents 5b803c2 + 2e06bbe commit adb6229

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
build:
2525
# The type of runner that the job will run on
2626
runs-on:
27-
group: larger-runner
2827
labels: ubuntu-latest-m
2928
continue-on-error: true
3029

@@ -56,16 +55,27 @@ jobs:
5655
- name: Git LFS Pull
5756
if: steps.cache.outputs.cache-hit != 'true'
5857
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
5967
6068
# Sets up MATLAB on the GitHub Actions runner
6169
- name: Setup MATLAB
6270
uses: matlab-actions/setup-matlab@v2
6371
with:
6472
release: ${{ matrix.release }}
73+
products: Statistics_and_Machine_Learning_Toolbox Signal_Processing_Toolbox
74+
cache: true
6575

6676
# Runs a set of commands using the runner's shell
6777
- name: Run all tests
68-
uses: matlab-actions/run-tests@v1
78+
uses: matlab-actions/run-tests@v2
6979
with:
7080
test-results-junit: test-results/results_${{ matrix.release }}.xml
7181
test-results-pdf: test-results/results_${{ matrix.release }}.pdf

0 commit comments

Comments
 (0)