Skip to content

Commit 67bee6c

Browse files
committed
Refresh release version badge
1 parent 230d982 commit 67bee6c

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maia-2: A Unified Model for Human-AI Alignment in Chess
22

33
[![CI](https://github.com/CSSLab/maia2/actions/workflows/ci.yml/badge.svg)](https://github.com/CSSLab/maia2/actions/workflows/ci.yml)
4-
[![PyPI](https://img.shields.io/pypi/v/maia2.svg)](https://pypi.org/project/maia2/)
4+
[![PyPI](https://img.shields.io/pypi/v/maia2.svg?v=0.11.0)](https://pypi.org/project/maia2/)
55
[![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://github.com/CSSLab/maia2/blob/main/pyproject.toml)
66
[![License](https://img.shields.io/github/license/CSSLab/maia2.svg)](https://github.com/CSSLab/maia2/blob/main/LICENSE)
77

‎tests/test_documentation.py‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,31 @@ def test_citation_version_matches_package_version(self):
4747
self.assertEqual(citation["version"], maia2.__version__)
4848
date.fromisoformat(str(citation["date-released"]))
4949

50+
def test_public_version_surfaces_match_package_version(self):
51+
root = Path(__file__).parents[1]
52+
version = maia2.__version__
53+
54+
self.assertIn(
55+
f"https://img.shields.io/pypi/v/maia2.svg?v={version}",
56+
self.readme,
57+
)
58+
self.assertIn(
59+
f'placeholder: "{version} or commit SHA"',
60+
root.joinpath(".github", "ISSUE_TEMPLATE", "bug_report.yml").read_text(
61+
encoding="utf-8"
62+
),
63+
)
64+
self.assertIn(
65+
f"assert maia2.__version__ == '{version}'",
66+
root.joinpath(".github", "workflows", "ci.yml").read_text(encoding="utf-8"),
67+
)
68+
69+
release_series = ".".join(version.split(".")[:2])
70+
self.assertIn(
71+
f"| {release_series}.x | Yes |",
72+
root.joinpath("SECURITY.md").read_text(encoding="utf-8"),
73+
)
74+
5075
def test_dependabot_keeps_runtime_version_updates_manual(self):
5176
config = yaml.safe_load(
5277
Path(__file__)

0 commit comments

Comments
 (0)