[CI] set up postgres service in workflow
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
also makes it use a .env.ci file that uses the correct host name
This commit is contained in:
parent
676bc7d4ea
commit
69ca3e4e8c
2 changed files with 11 additions and 1 deletions
|
|
@ -13,9 +13,15 @@ steps:
|
|||
environment:
|
||||
DJANGO_SETTINGS_MODULE: config.settings
|
||||
DEPLOYMENT: Test
|
||||
ENV_PATH: .env.test
|
||||
ENV_PATH: .env.ci
|
||||
commands:
|
||||
- python -m venv venv
|
||||
- /bin/bash -c "source venv/bin/activate"
|
||||
- python -m pip install --disable-pip-version-check -r requirements/test.txt
|
||||
- python -m pytest
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_PASSWORD: teilchensammler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue