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
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ jobs:
with:
enable-cache: true

# A release tag whose version was never bumped in pyproject.toml only
# surfaces at upload time, as an opaque PyPI "400 File already exists".
# Fail here instead, before the tests even run.
- name: Check the release tag matches the package version
if: github.event_name == 'release'
run: |
tag="${GITHUB_REF_NAME#v}"
packaged="$(uv version --short)"
if [ "$tag" != "$packaged" ]; then
echo "::error::Release tag v$tag does not match pyproject.toml version $packaged — bump the version, merge, then re-tag."
exit 1
fi

- name: Test (gate the release)
run: uv run --group dev pytest -q

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lokf"
version = "0.2.0"
version = "0.3.0"
description = "Linked Open Knowledge Format (LOKF) — a semantic profile of Google's Open Knowledge Format, defined once in LinkML"
readme = "README.md"
license = "CC-BY-4.0"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading