diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 350b06f..b8202bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,14 +16,15 @@ black: # https://github.com/python-gitlab/python-gitlab/blob/master/.gitlab-ci.yml used for reference deploy: stage: deploy - image: python:3.8 - - before_script: - - python -V # Print out python version for debugging - - pip install -U setuptools wheel twine - script: - - python setup.py bdist_wheel + - pip install -U setuptools wheel twine + - python setup.py sdist bdist_wheel + # test package + - python3 -m venv test + - . test/bin/activate + - pip install -U dist/python_gitlab*.whl + - gitlab -h + - deactivate - twine upload --skip-existing -u __token__ -p $PYPI_TOKEN dist/* - # only: - # - tags + only: + - tags