update to install python in node container

This commit is contained in:
Brendan McDevitt 2025-04-17 10:06:35 -05:00
parent fbc55dab26
commit 4ab1398619

View file

@ -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: |