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:
|
||||
platform: linux/amd64
|
||||
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
|
||||
variables:
|
||||
- &uv_env
|
||||
UV_LINK_MODE: copy
|
||||
|
||||
steps:
|
||||
- name: lint
|
||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
||||
environment:
|
||||
<<: *uv_env
|
||||
commands:
|
||||
- uv run ruff check .
|
||||
- uv run ruff format --check .
|
||||
|
||||
- name: test
|
||||
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
||||
environment:
|
||||
<<: *uv_env
|
||||
commands:
|
||||
- uv run pytest
|
||||
|
||||
Reference in New Issue
Block a user