Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Print Python version first #3718

Merged
merged 2 commits into from
May 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/print_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading