From 7835b79db13ab0253b60022a4e3e1312296824f4 Mon Sep 17 00:00:00 2001 From: Michael Hermann Date: Wed, 19 Nov 2025 20:47:33 +0100 Subject: [PATCH] Fix pip installation: Install pip3 if not available --- .gitea/workflows/update-laws.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/update-laws.yaml b/.gitea/workflows/update-laws.yaml index cdbea209..227b1111 100644 --- a/.gitea/workflows/update-laws.yaml +++ b/.gitea/workflows/update-laws.yaml @@ -25,12 +25,16 @@ jobs: - name: Set up Python run: | 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 run: | - pip install --upgrade pip - pip install -r requirements.txt + pip3 install --upgrade pip + pip3 install -r requirements.txt - name: Run update script run: |