ska-sa / tango-simlib

Generic data-driven device simulator generation for PyTango
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Setup a github actions workflow #137

Closed kmadisa closed 3 years ago

kmadisa commented 3 years ago

Adding a workflow file to set up github actions to run the automated unit tests. The workflow uses a different docker image (hosted on https://nexus.engageska-portugal.pt/) that has been created and maintained by the SKA System Team.

NB: Docker image artefact will move to https://artefact.skatelescope.org/ in future!!!

Some of the unit tests were reworked by mock patching the call to helper_module.get_database so that they wouldn't need a running instance of the tango-db server. With that in place, the Jenkinsfile was also update to use the camtango_nodb_bionic docker image.

Also added a workflow, publish_to_pypi.yaml, to automate the process of publishing the Python package to PyPI when a tag is created. For more information on the action used to upload to PyPI, see https://github.com/marketplace/actions/pypi-publish.

For more information on github actions, see link.

Screenshots or code snippets (if appropriate):

Definition of Done Checklist

JIRA: N/A

kmadisa commented 3 years ago
kmadisa commented 3 years ago

The https://nexus.engageska-portugal.pt/ service is currently down due to some upgrades (might take days).

kmadisa commented 3 years ago

See https://github.com/ska-sa/tango-simlib/runs/2771488752?check_suite_focus=true for linting failure dummy test.