Skip to content

Commit

Permalink
Print some basic system information for the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 9, 2019
1 parent 995c863 commit c22a5ff
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Build system information
run: python .github/workflows/system-info.py

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/system-info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""
Print out some handy system info like Travis CI does.
This sort of info is missing from GitHub Actions.
Requested here:
https://github.com/actions/virtual-environments/issues/79
"""
import os
import platform
import sys

print("Build system information")
print()

print("sys.version\t\t", sys.version.split("\n"))
print("os.name\t\t\t", os.name)
print("sys.platform\t\t", sys.platform)
print("platform.system()\t", platform.system())
print("platform.machine()\t", platform.machine())
print("platform.platform()\t", platform.platform())
print("platform.version()\t", platform.version())
print("platform.uname()\t", platform.uname())
print("platform.mac_ver()\t", platform.mac_ver())
3 changes: 3 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Build system information
run: python .github/workflows/system-info.py

- name: Docker pull
run: |
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}

- name: Build system information
run: python .github/workflows/system-info.py

- name: pip install wheel pytest pytest-cov
run: |
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Build system information
run: python .github/workflows/system-info.py

- name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit c22a5ff

Please sign in to comment.