setup-matlab icon indicating copy to clipboard operation
setup-matlab copied to clipboard

Setup with display for GUI testing?

Open peterson-tim-j opened this issue 3 years ago • 4 comments

Hi, great work building these packages! Thanks.

I'm trying to use it to run GitHub hosted Actions testing of my package HydroSight. However, the tests are failing because my package uses graphical features and setup-matlab appears to start matlab with '-nodisplay'.

Given that my package is heavily dependent upon a range of graphical features, is there any way to change matlab-actions/setup-matlab to enable the graphical environment?

FYI, if relevant my .yml testing file is here.

peterson-tim-j avatar Nov 26 '22 03:11 peterson-tim-j

Hi Tim,

GitHub-hosted runners currently require '-nodisplay'. We would like to remove this restriction in the future but at the moment you need to use a self-hosted runner to test features that require access to a display.

Best, Mark

mcafaro avatar Nov 28 '22 16:11 mcafaro

Hi Mark,

Thanks for the reply. Good to hear to that removing the -nodisplay restriction is on your radar.

Re solutions, unfortunately I'm very unlikely to be able to run a self-hosted runner for my public repo because of the security risks to my university. I see here that there are other CI systems that support Matlab. Do you happen to know if any support testing of graphical outputs?

Thanks, Tim

peterson-tim-j avatar Nov 30 '22 05:11 peterson-tim-j

All of the service-hosted runners are currently restricted to -nodisplay.

mcafaro avatar Dec 01 '22 13:12 mcafaro

@peterson-tim-j we plan to build this into the actions, but in the meantime take a look at this repository to see how you can setup a virtual display. Note you can set up a virtual display like this for any release, but there were specific changes in R2023b to enable the MATLAB actions to be able to leverage it so that release is needed.

acampbel avatar Sep 27 '23 03:09 acampbel