ci: fix PATH
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luca 2023-12-14 01:26:55 +01:00
parent 869f13dce8
commit 1f08e32191
1 changed files with 5 additions and 3 deletions

View File

@ -4,13 +4,12 @@ kind: pipeline
type: docker type: docker
name: default name: default
environment:
PATH: '${DRONE_WORKSPACE}/.venv/bin:${PATH}'
steps: steps:
- name: install - name: install
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- &path
export PATH="${DRONE_WORKSPACE}/.venv/bin:$$PATH"
- virtualenv .venv - virtualenv .venv
- which pip - which pip
- pip install black flake8 isort poetry - pip install black flake8 isort poetry
@ -18,6 +17,7 @@ steps:
- name: check style - name: check style
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- *path
- black --check . - black --check .
- isort -c . - isort -c .
- flake8 . - flake8 .
@ -25,6 +25,7 @@ steps:
- name: build - name: build
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- *path
- poetry build - poetry build
when: when:
event: event:
@ -34,6 +35,7 @@ steps:
- name: build and publish - name: build and publish
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- *path
- poetry publish --build --repository git.luj0ga.de - poetry publish --build --repository git.luj0ga.de
environment: environment:
POETRY_PYPI_TOKEN_git.luj0ga.de: POETRY_PYPI_TOKEN_git.luj0ga.de: