From 5efc9a63eaf3f8bff4339bbf0403103290f01c8b Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 28 Jul 2022 14:58:44 +0200 Subject: [PATCH] Feat: add test and update publish for drone --- .drone.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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