ci: fix PATH
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
869f13dce8
commit
1f08e32191
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue