-
Hello everyone, I would like to ask you a question regarding testing on Github. For unit testing of pyOptiSLang, it is necessary to start optiSLang server process on Github. However, I'm not sure how to deploy optiSLang application on Github. I have found, that pyMAPDL uses Docker for this task. However, I have no experience with that. Is there any manual for this task? I am particularly interested in how to deploy and set up the ANSYS license server on Github. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Hi @pyansys/developers, can anyone point us to the correct direction for this topic? Thanks! |
Beta Was this translation helpful? Give feedback.
-
"deploy optiSLang application on Github" and "unit testing of pyOptiSLang" sound like very different things. If its the latter - its something we have experience with for pyMAPDL + other cases. |
Beta Was this translation helpful? Give feedback.
-
First you need to build a docker image of optiSLang and publish it to the GitHub container repo, then you need to setup your CI/CD pipeline to pull the image and run unit tests. You can see examples of how this is working in the PyMAPDL and PyFluent repos. Licensing wise just talk to @akaszynski as suggested by Sandeep, there is a way to do it. |
Beta Was this translation helpful? Give feedback.
Thank you @smedikon for the mention.
Hi @ekrja
The procedure for testing in GitHub our products will depend on the product itself. If a license is required, the things get slightly more complicated.
What are you testing? A python package which connects to a product (MAPDL style, where PyMAPDL connects to MAPDL), or it is the product itself?
In PyMAPDL, the library connects to a MAPDL instance. To run this MAPDL instance we use docker. Creating the docker image is a totally different process (Can OptiSlang run in linux? Can you install it and have maximum 2gb image?)
Basically you will have to create a recipe file like: