Last active
February 10, 2025 11:12
-
-
Save goodki-d/33e619f766b4efc117c82c0f76398b1b to your computer and use it in GitHub Desktop.
Using uv in Bitbucket Pipelines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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