Bertrand Benjamin
bde6c11a27
All checks were successful
continuous-integration/drone/push Build is passing
29 lines
647 B
YAML
29 lines
647 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: Tests
|
|
image: python:3.10
|
|
environment:
|
|
PyPI_TOKEN: pypi_token
|
|
commands:
|
|
- apt-get update
|
|
- 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
|
|
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
|