From 4ab1398619755f0047ef47483968524a108181b0 Mon Sep 17 00:00:00 2001 From: bpmcdevitt Date: Thu, 17 Apr 2025 10:06:35 -0500 Subject: [PATCH] update to install python in node container --- .forgejo/workflows/daily-update.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/daily-update.yml b/.forgejo/workflows/daily-update.yml index b1b0660..53aa315 100644 --- a/.forgejo/workflows/daily-update.yml +++ b/.forgejo/workflows/daily-update.yml @@ -28,19 +28,22 @@ jobs: echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - + - name: Install Git and Python + run: | + apk update + apk add --no-cache git python3 py3-pip + ln -sf python3 /usr/bin/python + python --version + pip3 --version + - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install requests feedparser beautifulsoup4 + python3 -m pip install --upgrade pip + pip3 install --no-cache-dir requests feedparser beautifulsoup4 - name: Run incident parser script run: | - python madison_police_incidents.py + python3 madison_police_incidents.py - name: Configure Git run: |