From 21648db283aef5249d31baaa64e7b48d5f6a9efa Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 21 Nov 2024 20:30:05 +0100 Subject: [PATCH] [CI] use specialized image for ruff, run tests in their own step --- .woodpecker/workflow.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.woodpecker/workflow.yaml b/.woodpecker/workflow.yaml index 62e1d37..2ca3e54 100644 --- a/.woodpecker/workflow.yaml +++ b/.woodpecker/workflow.yaml @@ -3,16 +3,19 @@ when: branch: main steps: - - name: lint-and-test + - name: lint + image: pipelinecomponents/ruff + commands: + - ruff check src + + - name: test image: python:3.13-slim environment: PYTHONDEVMODE: 1 DJANGO_SETTINGS_MODULE: dx.settings DJANGO_CONFIGURATION: Dev commands: - - python -m venv venv + - python -m venv --upgrade-deps --without-scm-ignore-files 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