diff --git a/.drone.yml b/.drone.yml index 80ec6ad..691a942 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,13 +1,26 @@ +--- 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: plugins/pypi - settings: - username: - from_secret: pypi_username - password: - from_secret: pypi_password + 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