-
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.
Test for the correct version before pushing to PyPI
- Loading branch information
1 parent
ffa8f74
commit 9881111
Showing
4 changed files
with
46 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
Empty file.
File renamed without changes.
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,15 @@ | ||
"""Test to catch invalid versions when releasing a new git tag""" | ||
|
||
import os | ||
|
||
from hp3478a_async._version import __version__ | ||
|
||
|
||
def test_version(): | ||
""" | ||
Test the Git tag when using CI against the package version | ||
""" | ||
if os.getenv("GIT_TAG"): | ||
assert os.getenv("GIT_TAG") == __version__ | ||
else: | ||
assert True |