Skip to content

Commit

Permalink
Check why these versions could be different
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Oct 2, 2024
1 parent 49b2710 commit fc438ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/automatic_versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test version for tarball without git metadata
on: [push, pull_request, workflow_dispatch]
permissions: read-all
jobs:
test_pip_install:
test_versioning_from_tarball:
# ubuntu <= 20.04 is required for python 3.6
runs-on: ubuntu-20.04
strategy:
Expand Down Expand Up @@ -51,6 +51,9 @@ jobs:
- name: Check version when running against uninstalled git clone
run: |
echo "importing eessi.testsuite from:"
PYTHONPATH="$PWD/tests-suite-$GITHUB_SHA" python3 -c "import eessi.testsuite; print(eessi.testsuite.__file__)"
uninstalled_version=$(PYTHONPATH="$PWD/tests-suite-$GITHUB_SHA" python3 -c "import eessi.testsuite; print(eessi.testsuite.__version__)")
echo "Version from uninstalled git clone: $uninstalled_version"
fallback_version=$(grep -oP 'fallback_version\s*=\s*"\K[^"]+' "test-suite-$GITHUB_SHA/pyproject.toml")
Expand Down

0 comments on commit fc438ee

Please sign in to comment.