From 369c75af24b73af313160802cd98912fcb27b560 Mon Sep 17 00:00:00 2001 From: pptx704 Date: Tue, 19 May 2026 21:19:20 +0600 Subject: [PATCH] ci: run unit tests on every push Move per-step `when` filters: unit tests now run on every branch push, integration tests keep pull_request + main/dev branch restriction. Co-Authored-By: Claude Opus 4.7 (1M context) --- .woodpecker/check.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml index 3b78cc7..6f7273b 100644 --- a/.woodpecker/check.yml +++ b/.woodpecker/check.yml @@ -1,21 +1,25 @@ -when: - event: pull_request - branch: - - main - - dev - path: - - "src/**" - - "tests/**" - steps: unit-tests: image: ghcr.io/astral-sh/uv:python3.13-bookworm + when: + event: push + path: + - "src/**" + - "tests/**" commands: - uv sync --dev - uv run pytest -m "not integration" -v integration-tests: image: ghcr.io/astral-sh/uv:python3.13-bookworm + when: + event: pull_request + branch: + - main + - dev + path: + - "src/**" + - "tests/**" environment: WRENN_API_KEY: from_secret: WRENN_API_KEY