Skip to content

Commit

Permalink
fix: Pull installed version (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Koenig <[email protected]>
  • Loading branch information
ko3n1g authored Nov 14, 2024
1 parent 083715f commit a5a2a28
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/_build_test_publish_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,17 @@ jobs:
pip install *.whl
INSTALLED_VERSION=$(python -c "import $PYPROJECT_NAME; print($PYPROJECT_NAME.__version__)")
cmd=$(cat <<EOF
import $PYPROJECT_NAME
with open("version.txt", "w") as fh:
fh.write($PYPROJECT_NAME.__version__)
EOF
)
python -c "$cmd"
INSTALLED_VERSION=$(cat version.txt)
if [[ "$INSTALLED_VERSION" != "$EXPECTED_VERSION" ]]; then
echo 'Wheel has an outdated version, mission abort immediately!'
Expand Down

0 comments on commit a5a2a28

Please sign in to comment.