-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚙ GitHub Action: Check release versions
- Loading branch information
1 parent
19080bf
commit eb2b214
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# We call setuptools.setup() here as we may rely on setuptools to interpret | ||
# a dynamic version field. (Reading pyproject.toml is not enough in that case.) | ||
expected_git_tag="v$(python -c 'from setuptools import setup; setup()' --version)" | ||
actual_git_tag="$(git describe)" | ||
|
||
if [[ "$expected_git_tag" == "$actual_git_tag" ]]; then | ||
echo "OK: Python package version $expected_git_tag matches git tag" | ||
exit 0 | ||
else | ||
echo "ERROR: Python package version $expected_git_tag does NOT match git tag $actual_git_tag" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters