Set up test environment for testing
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Lukáš Kucharczyk 2023-01-05 12:05:16 +01:00
parent 9b07758198
commit 3e32261d4a
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 7 additions and 3 deletions

View File

@ -7,9 +7,13 @@ steps:
- name: test - name: test
image: python:3.10 image: python:3.10
commands: commands:
- "python -m pip install poetry" - VIRTUAL_ENV=/opt/venv
- "poetry install" - "python3 -m venv pip $VIRTUAL_ENV"
- "pytest" - PATH="$VIRTUAL_ENV/bin:$PATH"
- python -m pip install poetry
- poetry install
- poetry env info
- pytest
- name: build container - name: build container
image: plugins/docker image: plugins/docker
settings: settings: