From 93df0d75d59ee8f11760e3afe456cd30f88d0e47 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 21 Nov 2024 20:07:14 +0100 Subject: [PATCH] [ci] use a pythonic image inspired by https://codeberg.org/Codeberg-CI/examples/src/branch/main/Python/.woodpecker/code-quality.yaml --- .woodpecker/workflow.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.woodpecker/workflow.yaml b/.woodpecker/workflow.yaml index d7ad11e..34c124f 100644 --- a/.woodpecker/workflow.yaml +++ b/.woodpecker/workflow.yaml @@ -4,8 +4,15 @@ when: steps: - name: lint-and-test - image: debian + image: python:3.13-buster + environment: + PYTHONDEVMODE: 1 + DJANGO_SETTINGS_MODULE: dx.settings + DJANGO_CONFIGURATION: Dev commands: - - pip install -r requirements/test.txt + - python -m venv venv + - /bin/bash -c "source venv/bin/activate" + - python -m pip install --upgrade pip + - python -m pip install -r requirements/test.txt - ruff check src - python -m pytest