From 6897820cc7f86082b0eb8b1ed9bee197a3c8f5f7 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 10 Feb 2026 22:01:28 +0000 Subject: [PATCH] Add test steps to Drone CI pipelines before image builds Frontend pipeline: runs vitest via node:24-alpine before building. API pipeline: installs deps and runs pytest via python:3.13-slim before building. Both steps fail-fast (-x) so broken tests block deployment. --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0c4ea4d..3585569 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,13 @@ trigger: - push steps: + - name: Run frontend tests + image: node:24-alpine + commands: + - cd frontend + - npm ci + - npx vitest run + - name: Cache builder stage image: plugins/docker settings: @@ -102,6 +109,14 @@ trigger: - push steps: + - name: Run backend tests + image: python:3.13-slim + commands: + - apt-get update && apt-get install -y --no-install-recommends gcc libmariadb-dev python3-dev build-essential && rm -rf /var/lib/apt/lists/* + - pip install --no-cache-dir -r requirements.txt + - pip install --no-cache-dir pytest pytest-asyncio pytest-xdist httpx aioresponses fakeredis + - pytest tests/ -x -q + - name: Cache builder stage image: plugins/docker settings: