Feat: add test and update publish for drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Bertrand Benjamin 2022-07-28 14:58:44 +02:00
parent a0f93cc5b7
commit 5efc9a63ea

View File

@ -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