Fix venv requirement of power graph action/power update
Some checks failed
Generate Power Graph / plot (push) Failing after 2m27s
Some checks failed
Generate Power Graph / plot (push) Failing after 2m27s
This commit is contained in:
parent
d25bdf1115
commit
619524c75e
2 changed files with 21 additions and 9 deletions
|
|
@ -2,10 +2,8 @@ name: Generate Power Graph
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [ master ]
|
||||||
- master
|
paths: [ power_log.csv ]
|
||||||
paths:
|
|
||||||
- power_log.csv
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
plot:
|
plot:
|
||||||
|
|
@ -19,15 +17,19 @@ jobs:
|
||||||
git clone --branch "$BRANCH" https://${{ secrets.PAT_READ_REPO }}@mentalnet.xyz/forgejo/markmental/amd-monitor.git .
|
git clone --branch "$BRANCH" https://${{ secrets.PAT_READ_REPO }}@mentalnet.xyz/forgejo/markmental/amd-monitor.git .
|
||||||
echo "✅ Checked out branch $BRANCH ($COMMIT)"
|
echo "✅ Checked out branch $BRANCH ($COMMIT)"
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python and deps (venv)
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt-get update
|
||||||
apt install -y python3 python3-pip
|
apt-get install -y python3-full python3-venv
|
||||||
pip3 install matplotlib pandas
|
python3 -m venv venv
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install matplotlib pandas
|
||||||
|
|
||||||
- name: Generate power graph
|
- name: Generate power graph
|
||||||
run: |
|
run: |
|
||||||
python3 plot_power.py
|
. venv/bin/activate
|
||||||
|
python plot_power.py
|
||||||
|
|
||||||
- name: Upload graph artifact
|
- name: Upload graph artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
||||||
|
|
@ -326,3 +326,13 @@ timestamp,apu_w,gpu_w,total_w,apu_temp,gpu_temp
|
||||||
2025-11-05T18:20:41-05:00,51.14,9.00,60.14,71.0,67.0
|
2025-11-05T18:20:41-05:00,51.14,9.00,60.14,71.0,67.0
|
||||||
2025-11-05T18:20:42-05:00,1.06,9.00,10.06,71.0,67.0
|
2025-11-05T18:20:42-05:00,1.06,9.00,10.06,71.0,67.0
|
||||||
2025-11-05T18:20:43-05:00,41.18,9.00,50.18,72.0,67.0
|
2025-11-05T18:20:43-05:00,41.18,9.00,50.18,72.0,67.0
|
||||||
|
2025-11-05T18:25:32-05:00,56.08,9.00,65.08,71.0,67.0
|
||||||
|
2025-11-05T18:25:33-05:00,50.13,9.00,59.13,72.0,67.0
|
||||||
|
2025-11-05T18:25:34-05:00,63.19,10.00,73.19,71.0,67.0
|
||||||
|
2025-11-05T18:25:35-05:00,59.04,9.00,68.04,71.0,67.0
|
||||||
|
2025-11-05T18:25:36-05:00,48.04,9.00,57.04,71.0,67.0
|
||||||
|
2025-11-05T18:25:37-05:00,50.13,9.00,59.13,71.0,67.0
|
||||||
|
2025-11-05T18:25:38-05:00,61.03,9.00,70.03,71.0,67.0
|
||||||
|
2025-11-05T18:25:39-05:00,64.01,9.00,73.01,74.0,67.0
|
||||||
|
2025-11-05T18:25:40-05:00,12.23,9.00,21.23,71.0,67.0
|
||||||
|
2025-11-05T18:25:41-05:00,4.06,9.00,13.06,71.0,67.0
|
||||||
|
|
|
||||||
|
Loading…
Add table
Add a link
Reference in a new issue