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
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
uses: ml4t/ecosystem/.github/workflows/qualify-library.yml@457678d8860d0c816b1dc376e7e2691daa93af4d # v0.1.0
with:
import-package: ml4t.models
prerelease-test-paths: >-
["tests/test_configs.py", "tests/test_forecasters.py", "tests/test_integration_data.py",
"tests/test_pca_pipeline.py", "tests/test_rp_pca.py", "tests/test_types.py"]

select-candidate:
name: Select Qualified Candidate
Expand Down
2 changes: 1 addition & 1 deletion src/ml4t/models/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version shared by public and internal runtime metadata."""

__version__ = "0.1.1"
__version__ = "0.1.2"
33 changes: 22 additions & 11 deletions tests/test_repo_hygiene.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def test_ci_qualifies_one_candidate_across_required_platforms() -> None:
def test_python_315_qualifies_the_published_core_without_torch() -> None:
root = Path(__file__).parents[1]
project = tomllib.loads((root / "pyproject.toml").read_text(encoding="utf-8"))
workflow = (root / ".github/workflows/ecosystem.yml").read_text(encoding="utf-8")
workflows = tuple(
(root / ".github/workflows" / name).read_text(encoding="utf-8")
for name in ("ecosystem.yml", "release.yml")
)

assert not any(
"torch" in requirement and "python_version >= '3.15'" in requirement
Expand All @@ -111,16 +114,24 @@ def test_python_315_qualifies_the_published_core_without_torch() -> None:
for requirement in project["project"]["optional-dependencies"]["deep"]
)
assert "pytorch-nightly" not in (root / "pyproject.toml").read_text(encoding="utf-8")
assert "prerelease-test-paths:" in workflow
for test_name in (
"test_configs.py",
"test_forecasters.py",
"test_integration_data.py",
"test_pca_pipeline.py",
"test_rp_pca.py",
"test_types.py",
):
assert test_name in workflow
expected = {
"tests/test_configs.py",
"tests/test_forecasters.py",
"tests/test_integration_data.py",
"tests/test_pca_pipeline.py",
"tests/test_rp_pca.py",
"tests/test_types.py",
}
configured_paths = []
for workflow in workflows:
match = re.search(
r"(?m)^ prerelease-test-paths: >-\n(?P<paths>(?: .*\n?)+)",
workflow,
)
assert match is not None
configured_paths.append(set(re.findall(r'"([^"]+)"', match["paths"])))

assert configured_paths == [expected, expected]


def test_release_promotes_qualified_candidate_without_rebuilding() -> None:
Expand Down