2025-06-20 19:03:22 +02:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
2025-06-21 14:52:59 +02:00
|
|
|
- event: manual
|
2025-06-20 19:03:22 +02:00
|
|
|
|
|
|
|
steps:
|
2025-06-21 14:52:59 +02:00
|
|
|
sync:
|
2025-06-21 16:31:46 +02:00
|
|
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
2025-06-21 17:33:17 +02:00
|
|
|
volumes:
|
2025-06-21 17:41:14 +02:00
|
|
|
- uv-cache:/uv-cache
|
2025-06-21 15:17:58 +02:00
|
|
|
environment:
|
2025-06-21 17:26:47 +02:00
|
|
|
UV_CACHE_DIR: /uv-cache
|
2025-06-21 16:33:44 +02:00
|
|
|
UV_LINK_MODE: copy
|
2025-06-21 17:24:12 +02:00
|
|
|
#UV_PROJECT_ENVIRONMENT: /usr/local
|
2025-06-20 19:03:22 +02:00
|
|
|
commands:
|
2025-06-21 16:11:38 +02:00
|
|
|
- pwd
|
2025-06-21 17:40:12 +02:00
|
|
|
- ls -la > .uv-cache/bar
|
2025-06-21 16:30:39 +02:00
|
|
|
- uv sync
|
2025-06-21 16:45:52 +02:00
|
|
|
- ls -l /usr/local/bin
|
2025-06-21 16:46:47 +02:00
|
|
|
- echo $PATH
|
2025-06-21 14:52:59 +02:00
|
|
|
test:
|
2025-06-21 16:08:03 +02:00
|
|
|
#image: ghcr.io/astral-sh/uv:alpine
|
|
|
|
image: ghcr.io/astral-sh/uv:python3.13-alpine
|
2025-06-21 14:52:59 +02:00
|
|
|
commands:
|
2025-06-21 16:40:11 +02:00
|
|
|
- pwd
|
|
|
|
- which python
|
|
|
|
- python -c "import sys;print(sys.path)"
|
2025-06-21 16:48:41 +02:00
|
|
|
- ls -l /usr/local/bin
|
2025-06-21 16:47:51 +02:00
|
|
|
- pytest -s test/basic.py
|
2025-06-21 14:52:59 +02:00
|
|
|
build:
|
|
|
|
image: ghcr.io/astral-sh/uv:alpine
|
|
|
|
commands:
|
|
|
|
- uv build --wheel
|
|
|
|
- ls -l dist
|
2025-06-21 16:06:03 +02:00
|
|
|
podman-privileged-test:
|
|
|
|
image: quay.io/podman/stable
|
2025-06-21 16:36:35 +02:00
|
|
|
commands:
|
|
|
|
- echo From https://docs.gitlab.com/runner/executors/kubernetes/use_podman_with_kubernetes/
|
2025-06-21 16:06:03 +02:00
|
|
|
- podman build . -t playground-bis:testing
|