From 0d3b775ef55b8afa8304cc82e3c45fc270c89bc1 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Thu, 13 Jun 2024 16:19:55 +0800 Subject: [PATCH] Specify the Python version used by workflow as 3.12 --- .github/workflows/build_client.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_client.yml b/.github/workflows/build_client.yml index 31b01082..20348202 100644 --- a/.github/workflows/build_client.yml +++ b/.github/workflows/build_client.yml @@ -38,10 +38,15 @@ jobs: uses: actions/checkout@v3 with: ref: ${{ inputs.checkout-sha == null && github.sha || inputs.checkout-sha }} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' - name: Install PyInstaller and client dependencies run: | - pip3 install pyinstaller - pip3 install -r software/script/requirements.txt + python -m pip install --upgrade pip + pip install pyinstaller + pip install -r software/script/requirements.txt - name: Run OS specific setup run: ${{ matrix.pre_command }} - name: Compile native code