Skip to content

Commit

Permalink
Maybe PWD isn't set?
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Oct 2, 2024
1 parent 358041f commit 88451e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automatic_versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,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__)"
PYTHONPATH="./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__)")
uninstalled_version=$(PYTHONPATH=".//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 88451e6

Please sign in to comment.