ci: install tools in virtualenv
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Luca 2023-12-14 01:17:50 +01:00
parent 0f39ba2198
commit abdd503c85
1 changed files with 10 additions and 3 deletions

View File

@ -4,11 +4,20 @@ kind: pipeline
type: docker type: docker
name: default name: default
environment:
PATH: ${DRONE_WORKSPACE}/.venv/bin:${PATH}
steps: steps:
- name: install
image: python:3.11-alpine
commands:
- virtualenv .venv
- which pip
- pip install black flake8 isort poetry
- name: check style - name: check style
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- pip install black isort flake8
- black --check . - black --check .
- isort -c . - isort -c .
- flake8 . - flake8 .
@ -16,7 +25,6 @@ steps:
- name: build - name: build
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- pip install poetry
- poetry build - poetry build
when: when:
event: event:
@ -26,7 +34,6 @@ steps:
- name: build and publish - name: build and publish
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- pip install poetry
- 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: