From 340ed46df60a9064c9b5f872d17e1cf461567ec1 Mon Sep 17 00:00:00 2001 From: Tasnim Kabir Sadik Date: Sun, 12 Apr 2026 02:51:14 +0600 Subject: [PATCH] CI for linting and testing --- .woodpecker/check.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .woodpecker/check.yml diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml new file mode 100644 index 0000000..1f50437 --- /dev/null +++ b/.woodpecker/check.yml @@ -0,0 +1,42 @@ +kind: pipeline +name: static-analysis + +when: + - event: push + branch: + - main + - dev + +variables: + - &python_image "ghcr.io/astral-sh/uv:python3.13-bookworm-slim" + - &uv_cache_dir "/root/.cache/uv" + - &cache_key "uv-${CI_REPO_NAME}-${CI_COMMIT_BRANCH}" + +steps: + lint: + image: *python_image + environment: + UV_CACHE_DIR: *uv_cache_dir + UV_FROZEN: "1" + commands: + - uv sync --no-install-project + - make lint + volumes: + - name: uv-cache + path: *uv_cache_dir + + test: + image: *python_image + environment: + UV_CACHE_DIR: *uv_cache_dir + UV_FROZEN: "1" + commands: + - uv sync --no-install-project + - make test + volumes: + - name: uv-cache + path: *uv_cache_dir + +volumes: + - name: uv-cache + temp: {}