--- kind: pipeline name: default steps: - name: Tests image: python:3.10 environment: PyPI_TOKEN: pypi_token commands: - apt-get install -y texlive texlive-extra-utils - 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