ci: add --no-sync to prevent parallel venv corruption, UV_LINK_MODE=copy
Some checks failed
ci/woodpecker/pr/pipeline Pipeline failed

This commit is contained in:
2026-05-09 17:45:48 +03:00
parent 79f4d9caf5
commit e346ea3ff5

View File

@@ -9,6 +9,7 @@ steps:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
commands:
- pip install uv
- cd ..
@@ -25,6 +26,7 @@ steps:
EOF
- git clone https://git.pyaqa.ru/pi3c/pytfm.git
- cd $CI_WORKSPACE
- rm -rf .venv
- uv sync --no-dev --group lints --group tests --group types
- name: lint
@@ -33,12 +35,13 @@ steps:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
depends_on: [deps]
commands:
- pip install uv
- uv run ruff check .
- uv run ruff format --check .
- uv run isort --check-only .
- uv run --no-sync ruff check .
- uv run --no-sync ruff format --check .
- uv run --no-sync isort --check-only .
- name: type
image: python:3.13
@@ -46,10 +49,11 @@ steps:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
depends_on: [deps]
commands:
- pip install uv
- uv run mypy .
- uv run --no-sync mypy .
- name: test-unit
image: python:3.13
@@ -57,10 +61,11 @@ steps:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
depends_on: [deps]
commands:
- pip install uv
- uv run pytest tests/unit/
- uv run --no-sync pytest tests/unit/
- name: test-e2e
image: mcr.microsoft.com/playwright/python:v1.59.0
@@ -68,9 +73,10 @@ steps:
- /tmp/uv-cache:/root/.cache/uv
environment:
UV_CACHE_DIR: /root/.cache/uv
UV_LINK_MODE: copy
depends_on: [deps]
commands:
- pip install uv
- uv run blog &
- uv run --no-sync blog &
- sleep 5
- uv run pytest tests/e2e/ -v --no-cov
- uv run --no-sync pytest tests/e2e/ -v --no-cov