[CI] set up postgres service in workflow
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:
bronsen 2025-03-14 22:13:11 +01:00
parent 676bc7d4ea
commit 69ca3e4e8c
2 changed files with 11 additions and 1 deletions

View file

@ -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