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
15 changes: 15 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Verify package version matches release tag
run: |
python - <<'PY'
import os
import tomllib

with open("pyproject.toml", "rb") as pyproject_file:
package_version = tomllib.load(pyproject_file)["project"]["version"]

release_version = os.environ["GITHUB_REF_NAME"]
if package_version != release_version:
raise SystemExit(
f"Package version {package_version} does not match release tag {release_version}"
)
PY
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
]
requires-python = ">=3.11"
license = { file = "LICENSE" }
version = "0.19.9"
version = "0.19.10"
dynamic = ['description']

[project.urls]
Expand Down
Loading