teilchensammler/.woodpecker/workflow.yaml
bronsen 088eadc272 [CI debug] more fiddling with the venv
perhaps with a venv we don't need to tell pip about root being ok
2025-03-14 23:27:03 +01:00

30 lines
715 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
- . venv/bin/activate
- echo $VIRTUAL_ENV
- python -m pip install --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 --no-instructions