feature: pipeline update
All checks were successful
ci/woodpecker/pr/pipeline Pipeline was successful

This commit is contained in:
2026-05-10 12:20:45 +03:00
parent 34f0f8b79a
commit ada161f5fc

View File

@@ -74,10 +74,11 @@ steps:
UV_CACHE_DIR: /root/.cache/uv UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy UV_LINK_MODE: copy
UV_PYTHON: "3.13" UV_PYTHON: "3.13"
COVERAGE_FILE: .coverage.unit
depends_on: [deps] depends_on: [deps]
commands: commands:
- pip install uv - pip install uv
- uv run --no-sync pytest tests/unit/ - uv run --no-sync pytest tests/unit/ -o "addopts=--cov=app --cov-report=term-missing --cov-fail-under=0"
- name: test-integration - name: test-integration
image: python:3.13 image: python:3.13
@@ -89,10 +90,11 @@ steps:
UV_PYTHON: "3.13" UV_PYTHON: "3.13"
DB_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/blog_test DB_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/blog_test
SKIP_INIT_DB: "1" SKIP_INIT_DB: "1"
COVERAGE_FILE: .coverage.integration
depends_on: [deps] depends_on: [deps]
commands: commands:
- pip install uv - pip install uv
- uv run --no-sync pytest tests/integration/ -v --no-cov - uv run --no-sync pytest tests/integration/ -v -o "addopts=--cov=app --cov-report=term-missing --cov-fail-under=0"
- name: test-e2e - name: test-e2e
image: python:3.13 image: python:3.13
@@ -113,3 +115,18 @@ steps:
- uv run --no-sync blog & - uv run --no-sync blog &
- sleep 5 - sleep 5
- uv run --no-sync pytest tests/e2e/ -v --no-cov - uv run --no-sync pytest tests/e2e/ -v --no-cov
- name: coverage
image: python:3.13
volumes:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
UV_PYTHON: "3.13"
depends_on: [test-unit, test-integration, test-e2e]
commands:
- pip install uv
- uv run --no-sync coverage combine .coverage.unit .coverage.integration
- uv run --no-sync coverage report --fail-under=70 --include=app/*
- uv run --no-sync coverage html