ci: add --no-sync to prevent parallel venv corruption, UV_LINK_MODE=copy
Some checks failed
ci/woodpecker/pr/pipeline Pipeline failed
Some checks failed
ci/woodpecker/pr/pipeline Pipeline failed
This commit is contained in:
@@ -9,6 +9,7 @@ steps:
|
|||||||
- /tmp/uv-cache:/root/.cache/uv
|
- /tmp/uv-cache:/root/.cache/uv
|
||||||
environment:
|
environment:
|
||||||
UV_CACHE_DIR: /root/.cache/uv
|
UV_CACHE_DIR: /root/.cache/uv
|
||||||
|
UV_LINK_MODE: copy
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- cd ..
|
- cd ..
|
||||||
@@ -25,6 +26,7 @@ steps:
|
|||||||
EOF
|
EOF
|
||||||
- git clone https://git.pyaqa.ru/pi3c/pytfm.git
|
- git clone https://git.pyaqa.ru/pi3c/pytfm.git
|
||||||
- cd $CI_WORKSPACE
|
- cd $CI_WORKSPACE
|
||||||
|
- rm -rf .venv
|
||||||
- uv sync --no-dev --group lints --group tests --group types
|
- uv sync --no-dev --group lints --group tests --group types
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
@@ -33,12 +35,13 @@ steps:
|
|||||||
- /tmp/uv-cache:/root/.cache/uv
|
- /tmp/uv-cache:/root/.cache/uv
|
||||||
environment:
|
environment:
|
||||||
UV_CACHE_DIR: /root/.cache/uv
|
UV_CACHE_DIR: /root/.cache/uv
|
||||||
|
UV_LINK_MODE: copy
|
||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv run ruff check .
|
- uv run --no-sync ruff check .
|
||||||
- uv run ruff format --check .
|
- uv run --no-sync ruff format --check .
|
||||||
- uv run isort --check-only .
|
- uv run --no-sync isort --check-only .
|
||||||
|
|
||||||
- name: type
|
- name: type
|
||||||
image: python:3.13
|
image: python:3.13
|
||||||
@@ -46,10 +49,11 @@ steps:
|
|||||||
- /tmp/uv-cache:/root/.cache/uv
|
- /tmp/uv-cache:/root/.cache/uv
|
||||||
environment:
|
environment:
|
||||||
UV_CACHE_DIR: /root/.cache/uv
|
UV_CACHE_DIR: /root/.cache/uv
|
||||||
|
UV_LINK_MODE: copy
|
||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv run mypy .
|
- uv run --no-sync mypy .
|
||||||
|
|
||||||
- name: test-unit
|
- name: test-unit
|
||||||
image: python:3.13
|
image: python:3.13
|
||||||
@@ -57,10 +61,11 @@ steps:
|
|||||||
- /tmp/uv-cache:/root/.cache/uv
|
- /tmp/uv-cache:/root/.cache/uv
|
||||||
environment:
|
environment:
|
||||||
UV_CACHE_DIR: /root/.cache/uv
|
UV_CACHE_DIR: /root/.cache/uv
|
||||||
|
UV_LINK_MODE: copy
|
||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv run pytest tests/unit/
|
- uv run --no-sync pytest tests/unit/
|
||||||
|
|
||||||
- name: test-e2e
|
- name: test-e2e
|
||||||
image: mcr.microsoft.com/playwright/python:v1.59.0
|
image: mcr.microsoft.com/playwright/python:v1.59.0
|
||||||
@@ -68,9 +73,10 @@ steps:
|
|||||||
- /tmp/uv-cache:/root/.cache/uv
|
- /tmp/uv-cache:/root/.cache/uv
|
||||||
environment:
|
environment:
|
||||||
UV_CACHE_DIR: /root/.cache/uv
|
UV_CACHE_DIR: /root/.cache/uv
|
||||||
|
UV_LINK_MODE: copy
|
||||||
depends_on: [deps]
|
depends_on: [deps]
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv run blog &
|
- uv run --no-sync blog &
|
||||||
- sleep 5
|
- sleep 5
|
||||||
- uv run pytest tests/e2e/ -v --no-cov
|
- uv run --no-sync pytest tests/e2e/ -v --no-cov
|
||||||
|
|||||||
Reference in New Issue
Block a user