Bopytex/.drone.yml

29 lines
647 B
YAML
Raw Normal View History

---
kind: pipeline
name: default
steps:
- name: Tests
2022-07-29 13:20:30 +00:00
image: python:3.10
environment:
PyPI_TOKEN: pypi_token
commands:
2022-07-28 13:08:15 +00:00
- apt-get update
2022-07-29 13:20:30 +00:00
- apt-get install -y texlive texlive-extra-utils latexmk
- python -m pip install --upgrade pip
- python -m pip install poetry
- poetry install
- poetry run pytest
- name: Publish
2022-07-29 13:20:30 +00:00
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
2020-08-20 14:27:17 +00:00
when:
event: tag