Skip to content

Added watch.py script. #274

Added watch.py script.

Added watch.py script. #274

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
jobs:
Linux:
name: PrimeNet Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install requests
- name: Script
run: |
set -x
wget -qO - https://raw.github.com/tdulcet/Linux-System-Information/master/info.sh | bash -s --
python3 -X dev -c 'import platform; print(platform.freedesktop_os_release())' || true
python3 -X dev primenet.py --help
- name: Watch
run: |
set -x
nohup python3 -X dev watch.py >watch.out &
sleep 1
bash watch.sh
kill $!
cat watch.out
macOS:
name: PrimeNet macOS
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install requests
- name: Script
run: |
set -x
sysctl -n machdep.cpu.brand_string
sysctl -n hw.physicalcpu_max hw.logicalcpu_max
sysctl -n hw.cpufrequency hw.cpufrequency_max hw.tbfrequency kern.clockrate
sysctl -n hw.memsize
sysctl -n hw.l1dcachesize hw.l2cachesize hw.l3cachesize
python3 -X dev -c 'import platform; print(platform.mac_ver())'
python3 -X dev primenet.py --help
- name: Watch
run: |
set -x
nohup python3 -X dev watch.py >watch.out &
sleep 1
bash watch.sh
kill $!
cat watch.out
sed -i '' 's/ and True/ and False/' watch.py
nohup python3 -X dev watch.py >watch.out &
sleep 1
bash watch.sh
kill $!
cat watch.out
Windows:
name: PrimeNet Windows
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install requests
- name: Script
run: |
wmic cpu get name
Get-CimInstance Win32_Processor | Select Name
wmic cpu get NumberOfCores,NumberOfLogicalProcessors
Get-CimInstance Win32_Processor | Select NumberOfCores,NumberOfLogicalProcessors
wmic cpu get MaxClockSpeed
Get-CimInstance Win32_Processor | Select MaxClockSpeed
wmic memphysical get MaxCapacity
Get-CimInstance Win32_PhysicalMemoryArray | Select MaxCapacity
wmic ComputerSystem get TotalPhysicalMemory
Get-CimInstance Win32_ComputerSystem | Select TotalPhysicalMemory
wmic cpu get L2CacheSize,L3CacheSize
Get-CimInstance Win32_Processor | Select L2CacheSize,L3CacheSize
wmic path Win32_CacheMemory get CacheType,InstalledSize,Level
Get-CimInstance Win32_CacheMemory | Select CacheType,InstalledSize,Level
python -X dev -c "import platform; print(platform.win32_ver())"
python -X dev primenet.py --help
- name: Watch
shell: bash
run: |
set -x
nohup python3 -X dev watch.py >watch.out &
sleep 1
bash watch.sh
kill $!
cat watch.out