From 25961a86c26765f293d582900b00bb37403a780d Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Sun, 19 May 2024 14:11:57 -0400 Subject: [PATCH] CI: Print Python version first (#3718) * Print first version of Python. * Print also Git version which we use during build (when available and it is available in the CI). * Print GRASS versions last because they actually need the build to be successful and this purposefully runs even for failures. --- .github/workflows/print_versions.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/print_versions.sh b/.github/workflows/print_versions.sh index e6deff3a613..0bc91536f31 100755 --- a/.github/workflows/print_versions.sh +++ b/.github/workflows/print_versions.sh @@ -2,12 +2,14 @@ # Print versions, esp. versions of dependencies. -# fail on non-zero return code from a subprocess -set -e +python --version +python3 --version + +# We use Git during build. +git --version +# This will fail if the build failed. grass --version grass --tmp-location XY --exec g.version -e # Detailed Python version info (in one line thanks to echo) grass --tmp-location XY --exec bash -c "echo Python: \$(\$GRASS_PYTHON -c 'import sys; print(sys.version)')" -python3 --version -python --version