[CI] add woodpecker config for use on code.c-base.org

This commit is contained in:
bronsen 2025-03-14 13:28:53 +01:00
parent 063b2959a6
commit 3fdc60d9e5

20
.woodpecker/workflow.yaml Normal file
View file

@ -0,0 +1,20 @@
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
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