Added watch script. #276
Workflow file for this run
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
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 | |
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 $! || true | |
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 | |
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 |