stages: - deploy - test black: stage: test image: python:3.8 before_script: - python -V - pip install -U black==19.10b0 script: - black --check . pypi: image: python:3.8 stage: deploy script: - apt-get update -qy - apt-get install -y ruby-dev - gem install dpl - python setup.py sdist - dpl --provider=pypi --user=$TWINE_USERNAME --password=$TWINE_PASSWORD --skip_existing=true