ci: create venv in its own step
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Luca 2023-12-14 01:37:52 +01:00
parent cb362e84c8
commit 61e88970d6
1 changed files with 5 additions and 1 deletions

View File

@ -5,12 +5,16 @@ type: docker
name: default name: default
steps: steps:
- name: create virtual env
image: python:3.11-alpine
commands:
- python -m venv .venv
- name: install - name: install
image: python:3.11-alpine image: python:3.11-alpine
commands: commands:
- &path - &path
export PATH="${DRONE_WORKSPACE}/.venv/bin:$$PATH" export PATH="${DRONE_WORKSPACE}/.venv/bin:$$PATH"
- python -m venv .venv
- which pip - which pip
- pip install black flake8 isort poetry - pip install black flake8 isort poetry