cmower / optas

OpTaS: An optimization-based task specification library for trajectory optimization and model predictive control.
https://cmower.github.io/optas/
Other
101 stars 14 forks source link

Add unit test that runs example.py #105

Closed cmower closed 1 year ago

cmower commented 1 year ago

It would be good to add the example.py script to the test_examples.py test suit (to prevent issues such as #102):

https://github.com/cmower/optas/blob/09f318bc59a1e8da1ef489ccb2bd429c7b85fbf3/tests/test_examples.py#L87-L89

Unfortunately, this throws an error by the GitHub action when I try to add (cf #104).

I think this has something to do with the fact that the example.py script launches a GUI (using vtk) and the default PC that github is running can not handle it - even with the automatic timeout.

I found this which helped in the sense that the error changed, but didn't fix the issue. So maybe there is something in that.

I'll keep this issue left open since it doesn't affect the main optas library (its a wish list) but it should not be added to the first release plan #63.

cmower commented 1 year ago

Closing for now, but would be great to resolve at some point.