teilchensammler/.woodpecker/workflow.yaml
bronsen 69ca3e4e8c
Some checks failed
ci/woodpecker/push/workflow Pipeline failed
[CI] set up postgres service in workflow
also makes it use a .env.ci file that uses the correct host name
2025-03-14 22:13:31 +01:00

27 lines
595 B
YAML

when:
- event: push
branch: main
steps:
- name: lint
image: pipelinecomponents/ruff
commands:
- ruff check .
- name: test
image: python:3.13-slim
environment:
DJANGO_SETTINGS_MODULE: config.settings
DEPLOYMENT: 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