ci: fix UV_LINK_MODE warning and add when event filter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,14 +1,25 @@
|
|||||||
labels:
|
labels:
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: [push, pull_request]
|
||||||
|
|
||||||
|
variables:
|
||||||
|
- &uv_env
|
||||||
|
UV_LINK_MODE: copy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
||||||
|
environment:
|
||||||
|
<<: *uv_env
|
||||||
commands:
|
commands:
|
||||||
- uv run ruff check .
|
- uv run ruff check .
|
||||||
- uv run ruff format --check .
|
- uv run ruff format --check .
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
||||||
|
environment:
|
||||||
|
<<: *uv_env
|
||||||
commands:
|
commands:
|
||||||
- uv run pytest
|
- uv run pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user