mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 19:06:18 +03:00
Merge pull request #4262 from hugovk/gha-system-info
GHA: Print some basic system information for the logs
This commit is contained in:
commit
aea1111aa3
3
.github/workflows/lint.yml
vendored
3
.github/workflows/lint.yml
vendored
|
@ -20,6 +20,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Build system information
|
||||||
|
run: python .github/workflows/system-info.py
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
|
25
.github/workflows/system-info.py
vendored
Normal file
25
.github/workflows/system-info.py
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
"""
|
||||||
|
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())
|
||||||
|
if sys.platform == "darwin":
|
||||||
|
print("platform.mac_ver()\t", platform.mac_ver())
|
3
.github/workflows/test-docker.yml
vendored
3
.github/workflows/test-docker.yml
vendored
|
@ -29,6 +29,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Build system information
|
||||||
|
run: python .github/workflows/system-info.py
|
||||||
|
|
||||||
- name: Docker pull
|
- name: Docker pull
|
||||||
run: |
|
run: |
|
||||||
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
|
docker pull pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
|
||||||
|
|
3
.github/workflows/test-windows.yml
vendored
3
.github/workflows/test-windows.yml
vendored
|
@ -70,6 +70,9 @@ jobs:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
architecture: ${{ matrix.architecture }}
|
architecture: ${{ matrix.architecture }}
|
||||||
|
|
||||||
|
- name: Build system information
|
||||||
|
run: python .github/workflows/system-info.py
|
||||||
|
|
||||||
- name: pip install wheel pytest pytest-cov
|
- name: pip install wheel pytest pytest-cov
|
||||||
run: |
|
run: |
|
||||||
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
|
||||||
|
|
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -55,6 +55,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Build system information
|
||||||
|
run: python .github/workflows/system-info.py
|
||||||
|
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user