Skip to content

Instantly share code, notes, and snippets.

@goodki-d
Last active February 10, 2025 11:12
Show Gist options
  • Save goodki-d/33e619f766b4efc117c82c0f76398b1b to your computer and use it in GitHub Desktop.
Save goodki-d/33e619f766b4efc117c82c0f76398b1b to your computer and use it in GitHub Desktop.
Using uv in Bitbucket Pipelines
image:
name: ghcr.io/astral-sh/uv:<UV_VERSION>-python<PYTHON_VERSION>-<BASE_LAYER>
definitions:
caches:
uv:
key:
files:
- uv.lock
path: .uv-cache
pipelines:
default:
- parallel:
fail-fast: true
steps:
- step:
name: Lint
caches:
- uv
script:
- # install deps
- uv sync --group lint
- # run commands
- uv run mypy app/
- step:
name: Run Tests
caches:
- uv
script:
- # install deps
- uv sync --group test
- # run commands
- uv run pytest tests/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment