teilchensammler/.woodpecker/workflow.yaml
bronsen 76f30befe8 [CI] tell pip again it is ok to run as root
perhaps we using this parameter correctly this time..
2025-03-14 23:09:42 +01:00

30 lines
751 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"
- echo VENV is $VIRTUAL_ENV
- python -m pip install --root-user-action=ignore --disable-pip-version-check --no-input --quiet -r requirements/test.txt
- python -m pytest
services:
- name: database
image: postgres:17
environment:
POSTGRES_PASSWORD: teilchensammler
POSTGRES_DB: teilchensammler_test
POSTGRES_INITDB_ARGS: --nosync