From 32e735baef225e76a54c793795afca9dfc594809 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 10 Sep 2025 22:27:05 +0200 Subject: [PATCH] ci: Correctly filter for events in woodpecker Fixes the following linter issue: https://woodpecker-ci.org/docs/usage/linter#event-filter-for-all-steps --- .woodpecker/lint.yml | 3 +++ .woodpecker/static_analysis.yml | 3 +++ .woodpecker/test.yml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 3601016..f6feed1 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -1,3 +1,6 @@ +when: + - event: push + steps: lint_ruff: image: ghcr.io/astral-sh/uv:python3.11-trixie-slim diff --git a/.woodpecker/static_analysis.yml b/.woodpecker/static_analysis.yml index 037007b..95bf928 100644 --- a/.woodpecker/static_analysis.yml +++ b/.woodpecker/static_analysis.yml @@ -1,3 +1,6 @@ +when: + - event: push + steps: pyright: image: ghcr.io/astral-sh/uv:python3.11-trixie-slim diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index b8d5947..3315ac4 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,5 +1,5 @@ when: - branch: main + - event: push steps: pytest: