Bopytex/.drone.yml

27 lines
561 B
YAML

---
kind: pipeline
name: default
steps:
- name: Tests
image: python:3.10
environment:
PyPI_TOKEN: pypi_token
commands:
- python -m pip install --upgrade pip
- python -m pip install poetry
- poetry install
- poetry run pytest
- name: Publish
image: python:3.10
environment:
PyPI_TOKEN: pypi_token
commands:
- python -m pip install --upgrade pip
- python -m pip install poetry
- poetry config pypi-token.pypi $PyPI_TOKEN
- poetry publish --build
when:
event: tag