This commit is contained in:
buenosairesam
2025-12-31 05:07:53 -03:00
parent 00b1e663d9
commit 040fccc58d
6 changed files with 1363 additions and 316 deletions

View File

@@ -1,8 +1,7 @@
# Woodpecker CI - Test Pipeline (runs on PRs and pushes)
# Separate file for cleaner organization
steps:
lint:
- name: lint
image: python:3.11-slim
commands:
- pip install --quiet ruff mypy
@@ -11,14 +10,14 @@ steps:
- echo "=== Checking formatting ==="
- ruff format --check services/ shared/
typecheck:
- name: typecheck
image: python:3.11-slim
commands:
- pip install --quiet mypy types-redis
- echo "=== Type checking shared/ ==="
- mypy shared/ --ignore-missing-imports || true
unit-tests:
- name: unit-tests
image: python:3.11-slim
commands:
- pip install --quiet pytest pytest-asyncio pytest-cov
@@ -26,7 +25,7 @@ steps:
- echo "=== Running unit tests ==="
- pytest shared/ services/ -v --tb=short --cov=shared --cov=services --cov-report=term-missing || true
proto-check:
- name: proto-check
image: python:3.11-slim
commands:
- pip install --quiet grpcio-tools
@@ -34,7 +33,5 @@ steps:
- python -m grpc_tools.protoc -I./proto --python_out=/tmp --grpc_python_out=/tmp ./proto/metrics.proto
- echo "Proto compilation successful"
depends_on: []
when:
event: [push, pull_request]
- event: [push, pull_request]