update to install python in node container
This commit is contained in:
parent
fbc55dab26
commit
4ab1398619
1 changed files with 11 additions and 8 deletions
|
@ -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: |
|
||||
|
|
Loading…
Add table
Reference in a new issue