We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b8474 commit 61ea3a2Copy full SHA for 61ea3a2
.github/workflows/test-and-release.yml
@@ -48,6 +48,15 @@ jobs:
48
with:
49
python-version: "3.x"
50
51
+ - name: Check version
52
+ run: |
53
+ TAG_VERSION = ${{ github.ref_name }}
54
+ PACKAGE_VERSION = $(grep -Po 'version\s*=\s*["\x27]\K[^"\x27]+' setup.py)
55
+ if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
56
+ echo "Version mismatch! GitHub tag is $TAG_VERSION but package version is $PACKAGE_VERSION."
57
+ exit 1
58
+ fi
59
+
60
- name: Install pypa/build
61
run: >-
62
python3 -m
0 commit comments