diff --git a/.drone.yml b/.drone.yml index 2b36c0c..c1399ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,11 +4,20 @@ kind: pipeline type: docker name: default +environment: + PATH: ${DRONE_WORKSPACE}/.venv/bin:${PATH} + steps: + - name: install + image: python:3.11-alpine + commands: + - virtualenv .venv + - which pip + - pip install black flake8 isort poetry + - name: check style image: python:3.11-alpine commands: - - pip install black isort flake8 - black --check . - isort -c . - flake8 . @@ -16,7 +25,6 @@ steps: - name: build image: python:3.11-alpine commands: - - pip install poetry - poetry build when: event: @@ -26,7 +34,6 @@ steps: - name: build and publish image: python:3.11-alpine commands: - - pip install poetry - poetry publish --build --repository git.luj0ga.de environment: POETRY_PYPI_TOKEN_git.luj0ga.de: