stages: - deploy - test black: stage: test image: python:3.8 before_script: - python -V - pip install -U black==19.10b0 script: - black --check . # 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 - twine upload --skip-existing -u __token__ -p $PYPI_TOKEN dist dist/* only: - tags