*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 32758021 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Add configuration files for CI/CD and PyPI releases

parent e78c9351
Branches
Tags
1 merge request!1Update formatscaper according to identified requirements
...@@ -21,3 +21,4 @@ Pipfile ...@@ -21,3 +21,4 @@ Pipfile
Pipfile.lock Pipfile.lock
**/__pycache__ **/__pycache__
.coverage .coverage
dist
# vim: ts=2
stages:
- testing
- release
run-tests:
stage: testing
script:
- pip install --upgrade pip pipenv
- pipenv --rm || true
- pipenv run pip install -e '.[tests]'
- pipenv run pytest
coverage: /TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
pypi-release:
stage: release
needs:
- run-tests
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+/'
script:
- pip3 install --upgrade pip build twine check-manifest
- rm -f dist/*
- python3 -m check_manifest
- python3 -m build
- python3 -m twine check dist/*
- TWINE_USERNAME=${PYPI_USER} TWINE_PASSWORD=${PYPI_PASSWORD} python3 -m twine upload --skip-existing --non-interactive dist/*
exclude .gitlab-ci.yml
exclude *.sqlite
exclude *.log
exclude *.yml
include MANIFEST.in
include LICENSE
recursive-include tests *.py *.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment