From 49b27107be0188d41c94eb47f7951b5615db199b Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Wed, 2 Oct 2024 17:35:09 +0200 Subject: [PATCH] Make sure to only print the version, nothing else --- .github/workflows/automatic_versioning.yml | 2 +- .github/workflows/pip_install.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/automatic_versioning.yml b/.github/workflows/automatic_versioning.yml index cf40d5b1..e5f00f6b 100644 --- a/.github/workflows/automatic_versioning.yml +++ b/.github/workflows/automatic_versioning.yml @@ -91,7 +91,7 @@ jobs: echo "Version from version file: $versionfile_version" echo "Checking if we can import the __version__ from eessi.testsuite" - installed_version=$(python -c 'import eessi.testsuite; print("eessi.testsuite:", eessi.testsuite.__version__)') + installed_version=$(python -c 'import eessi.testsuite; print(eessi.testsuite.__version__)') echo "Version from installed testsuite: $installed_version" echo "Testing if this is the fallback version from pyproject.toml ..." diff --git a/.github/workflows/pip_install.yml b/.github/workflows/pip_install.yml index 5e37f892..29c1b875 100644 --- a/.github/workflows/pip_install.yml +++ b/.github/workflows/pip_install.yml @@ -68,7 +68,7 @@ jobs: echo "Version from version file: $versionfile_version" echo "Checking if we can import the __version__ from eessi.testsuite" - testsuite_version=$(python -c 'import eessi.testsuite; print("eessi.testsuite:", eessi.testsuite.__version__)') + testsuite_version=$(python -c 'import eessi.testsuite; print(eessi.testsuite.__version__)') echo "Version imported from eessi.testsuite: $testsuite_version" echo "Checking if the version imported from eessi.testsuite matches that from the version file ..." @@ -107,7 +107,7 @@ jobs: echo "Version from version file: $githttps_versionfile_version" echo "Checking if we can import the __version__ from eessi.testsuite" - githttps_testsuite_version=$(python -c 'import eessi.testsuite; print("eessi.testsuite:", eessi.testsuite.__version__)') + githttps_testsuite_version=$(python -c 'import eessi.testsuite; print(eessi.testsuite.__version__)') echo "Version imported from eessi.testsuite: $githttps_testsuite_version" echo "Checking if the version imported from eessi.testsuite matches that from the version file ..."