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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user