Skip to content

Commit

Permalink
CI: Print more version information, for all platforms (OSGeo#3740)
Browse files Browse the repository at this point in the history
* CI: Print more version information including all flags of g.version

* CI(macOS): Always print versions, even on failures

* CI(OSGeo4W): Print versions after build

* Apply suggestions from code review

---------

Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
  • Loading branch information
echoix and nilason authored May 26, 2024
1 parent b0a00b4 commit 9f2952c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/print_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)')"

0 comments on commit 9f2952c

Please sign in to comment.