Skip to content
Snippets Groups Projects
Commit b28afb68 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

publish_python_package: publish the python package under nexus repo.

parent 732b22a0
No related branches found
No related tags found
1 merge request!6Publish python package
Pipeline #11423 failed
......@@ -16,7 +16,9 @@ before_script:
stages:
- test
- linting
- deploy
- build
- publish
- pages
# The YAML file defines a set of jobs with constraints stating when they should be run.
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always
......@@ -66,8 +68,40 @@ linting:
paths:
- ./build
build_dev_package:
stage: build
tags:
- docker-executor
script:
- python3 setup.py egg_info -b+dev.$CI_COMMIT_SHORT_SHA sdist bdist_wheel
artifacts:
path:
- ./dist
build_package:
stage: build
tags:
- docker-executor
script:
- python setup.py egg_info -b.$CI_COMMIT_SHORT_SHA sdist bdist_wheel
only: [master]
artifacts:
path:
- ./dist
publish:
stage: publish
tags:
- docker-executor
variables:
TWINE_USERNAME: $TWINE_USERNAME
TWINE_PASSWORD: $TWINE_PASSWORD
script:
- pip3 install twine
- twine upload --repository-url $PYPI_REPOSITORY_URL dist/*
pages:
stage: deploy
stage: pages
tags:
- docker-executor
dependencies:
......
......@@ -155,7 +155,6 @@ class TestCspSubElementMaster(object):
# reinitialize the device to return to
# adminMode =ONLINE and State=INIT
tango_context.device.Init()
time.sleep(2)
assert tango_context.device.adminMode == AdminMode.ONLINE
assert tango_context.device.State() == DevState.INIT
with pytest.raises(DevFailed) as df:
......@@ -257,8 +256,6 @@ class TestCspSubElementMaster(object):
tango_context.device.onCmdDurationExpected = 20
tango_context.device.offCmdDurationExpected = 20
tango_context.device.standbyCmdDurationExpected = 20
# wait to let the polling thread update the attrs value
time.sleep(3)
assert tango_context.device.onCmdDurationExpected == 20
assert tango_context.device.offCmdDurationExpected == 20
assert tango_context.device.standbyCmdDurationExpected == 20
......
......@@ -190,8 +190,6 @@ class TestCspSubElementSubarray(object):
def test_set_command_duration_expected(self, tango_context):
"""Test xxxCmdDurationExpected attributes"""
tango_context.device.goToIdleDurationExpected = 20
# wait to let the polling thread update the attrs value
time.sleep(3)
assert tango_context.device.goToIdleDurationExpected == 20
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment