drone-ci testing
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
44afed516c
commit
95df62b5fb
|
|
@ -22,6 +22,9 @@ steps:
|
|||
|
||||
- name: requirements
|
||||
image: python:3.10-alpine
|
||||
volumes:
|
||||
- name: venv
|
||||
path: /drone/src/.venv
|
||||
commands:
|
||||
- python -m venv .venv
|
||||
- . .venv/bin/activate
|
||||
|
|
@ -37,10 +40,12 @@ steps:
|
|||
from_secret: TESTING_PASSWORD
|
||||
POSTGRES_DB:
|
||||
from_secret: TESTING_DB
|
||||
volumes:
|
||||
- name: venv
|
||||
path: /drone/src/.venv
|
||||
commands:
|
||||
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||
- export POSTGRES_URL=$hostip
|
||||
- pwd
|
||||
- pytest
|
||||
- name: db-cleanup
|
||||
image: docker/compose:alpine-1.29.2
|
||||
|
|
@ -54,3 +59,5 @@ volumes:
|
|||
- name: docker_sock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
- name: venv
|
||||
temp: {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue