Fix pip installation: Install pip3 if not available
This commit is contained in:
@@ -25,12 +25,16 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
run: |
|
run: |
|
||||||
python3 --version
|
python3 --version
|
||||||
python3 -m pip install --upgrade pip
|
# Install pip if not available
|
||||||
|
if ! command -v pip3 &> /dev/null; then
|
||||||
|
sudo apt-get update && sudo apt-get install -y python3-pip
|
||||||
|
fi
|
||||||
|
python3 -m pip install --upgrade pip || pip3 install --upgrade pip
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
- name: Run update script
|
- name: Run update script
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user