From 1f08e32191db5ccbf4d061595d5d3d9717c55ba5 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Dec 2023 01:26:55 +0100 Subject: [PATCH] ci: fix PATH --- .drone.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 580e5dc..f9373ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,12 @@ kind: pipeline type: docker name: default -environment: - PATH: '${DRONE_WORKSPACE}/.venv/bin:${PATH}' - steps: - name: install image: python:3.11-alpine commands: + - &path + export PATH="${DRONE_WORKSPACE}/.venv/bin:$$PATH" - virtualenv .venv - which pip - pip install black flake8 isort poetry @@ -18,6 +17,7 @@ steps: - name: check style image: python:3.11-alpine commands: + - *path - black --check . - isort -c . - flake8 . @@ -25,6 +25,7 @@ steps: - name: build image: python:3.11-alpine commands: + - *path - poetry build when: event: @@ -34,6 +35,7 @@ steps: - name: build and publish image: python:3.11-alpine commands: + - *path - poetry publish --build --repository git.luj0ga.de environment: POETRY_PYPI_TOKEN_git.luj0ga.de: