From abdd503c85bdb6cb715e3ded09ce6e1c06e14a11 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Dec 2023 01:17:50 +0100 Subject: [PATCH] ci: install tools in virtualenv --- .drone.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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: