Newer
Older
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:latest
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
- pip install coverage
- coverage run --source=lotte,match,key_passager,visualization -m unittest discover -p 'Test*.py'
- echo $CI_COMMIT_TAG
- anybadge --label=Version --file=version/version.svg --color=teal --value=$CI_COMMIT_TAG
upload:
stage: upload
script:
- pip install twine
- cat $PYPIRC > /tmp/.pypirc
- python -m pip install --upgrade build
- python -m build
- python -m twine upload --repository pypi dist/* --config-file /tmp/.pypirc