image: python:latest variables: REDIS_HOST: redis before_script: - pip install -r requirements_dev.txt - pip install . test: services: - redis:latest script: - pytest publish: script: - pip install twine - python setup.py sdist bdist_wheel - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://gitlab.eox.at/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* only: - tags