ci: install tools in virtualenv
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
0f39ba2198
commit
abdd503c85
13
.drone.yml
13
.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:
|
||||
|
|
Loading…
Reference in New Issue