diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5e57873460a..2ff85928636 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -55,6 +55,7 @@ jobs: - name: Add the bin directory to PATH run: echo "$HOME/install/bin" >> $GITHUB_PATH - name: Check installed version + if: always() shell: bash -l {0} run: source ./.github/workflows/print_versions.sh - name: Run tests diff --git a/.github/workflows/osgeo4w.yml b/.github/workflows/osgeo4w.yml index 678e7f52209..7f0ca12e270 100644 --- a/.github/workflows/osgeo4w.yml +++ b/.github/workflows/osgeo4w.yml @@ -66,6 +66,11 @@ jobs: shell: msys2 {0} run: .github/workflows/build_osgeo4w.sh + - name: Print installed versions + if: always() + shell: msys2 {0} + run: .github/workflows/print_versions.sh + - name: Test executing of the grass command run: .github/workflows/test_simple.bat 'C:\OSGeo4W\opt\grass\grass84.bat' diff --git a/.github/workflows/print_versions.sh b/.github/workflows/print_versions.sh index 0bc91536f31..25b77eae2ec 100755 --- a/.github/workflows/print_versions.sh +++ b/.github/workflows/print_versions.sh @@ -10,6 +10,6 @@ git --version # This will fail if the build failed. grass --version -grass --tmp-location XY --exec g.version -e +grass --tmp-location XY --exec g.version -ergb # 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)')"