Feat: add test and update publish for drone
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a0f93cc5b7
commit
5efc9a63ea
25
.drone.yml
25
.drone.yml
@ -1,13 +1,26 @@
|
|||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: Publish
|
||||||
image: plugins/pypi
|
image: python:3.10
|
||||||
settings:
|
environment:
|
||||||
username:
|
PyPI_TOKEN: pypi_token
|
||||||
from_secret: pypi_username
|
commands:
|
||||||
password:
|
- python -m pip install --upgrade pip
|
||||||
from_secret: pypi_password
|
- python -m pip install poetry
|
||||||
|
- poetry config pypi-token.pypi $PyPI_TOKEN
|
||||||
|
- poetry publish --build
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
Loading…
Reference in New Issue
Block a user