postat/.gitlab-ci.yml

26 lines
450 B
YAML
Raw Permalink Normal View History

2023-08-24 06:44:21 +00:00
image: python:3.10
stages:
- test
- publish
before_script:
- python -V
- python -m venv venv
- source venv/bin/activate
- pip install -U pip
- pip install .
test:
stage: test
script:
- python -m unittest tests/public.py
publish:
stage: publish
script:
- pip install -U hatchling twine build
- python -m build .
- python -m twine upload --username __token__ --password ${PYPI_TOKEN} dist/*
only:
- tags