-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print some basic system information for the logs
- Loading branch information
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters