Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/usethis/_integrations/ci/bitbucket/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# plus manually forbid Step1.step from being None
# plus manually forbid ParallelItem.parallel from being None
# plus manually forbid StageItem.stage from being None
# plus manually add "shared" to the Literal annotation in `StepBase.type` to match default

from __future__ import annotations

Expand Down Expand Up @@ -387,6 +388,11 @@ class StepBase(BaseModel):
max_length=50,
title="Concurrency group",
)
custom: str | None = Field(
default=None,
description="The name of the custom pipeline to run, if the step type is pipeline.",
title="Custom",
)
deployment: str | None = Field(
default=None,
description="The deployment environment for the step.",
Expand Down Expand Up @@ -436,6 +442,9 @@ class StepBase(BaseModel):
description="The trigger used for the pipeline step.",
title="Step Trigger",
)
type: Literal["inline", "pipeline", "shared"] | None = Field(
default="shared", description="The type of the step.", title="Step Type"
)


class Step2(StepBase):
Expand Down
2 changes: 1 addition & 1 deletion tests/docs/test_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_assemble_readme_from_docs(usethis_dev_dir: Path):
![PyPI License](https://img.shields.io/pypi/l/usethis.svg)
[![PyPI Supported Versions](https://img.shields.io/pypi/pyversions/usethis.svg)](https://pypi.python.org/pypi/usethis)
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![codecov](https://codecov.io/gh/usethis-python/usethis-python/graph/badge.svg?token=MU1AZS0KHV)](https://codecov.io/gh/usethis-python/usethis-python)
[![codecov](https://codecov.io/gh/usethis-python/usethis-python/graph/badge.svg?token=0QW539GSP9)](https://codecov.io/gh/usethis-python/usethis-python)
[![GitHub Actions Status](https://github.com/usethis-python/usethis-python/workflows/CI/badge.svg)](https://github.com/usethis-python/usethis-python/actions)
[![Docs](https://app.readthedocs.org/projects/usethis/badge/?version=stable)](https://usethis.readthedocs.io/en/stable/)
""")
Expand Down
Loading
Loading