From abd6209fe18c700c4d05e353028e1a6799a51535 Mon Sep 17 00:00:00 2001 From: Elijah Date: Fri, 12 Jan 2024 10:18:14 +0100 Subject: [PATCH] Add step to check version before trying to create venv --- .gitea/workflows/ci-pipeline.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index 8e6005e..f495e37 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -15,14 +15,15 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Check if Python is installed - run: | - python3 -c "print('Python is installed')" - - name: Install python3-venv id: install run: | - apt-get update && apt-get install python3-virtualenv -y + apt-get update + apt-get install python3 python3-virtualenv python3-pip -y + + - name: Check Python version + run: | + python3 --version - name: Create virtual environment run: |