From 5560d4bd397d593c23484e5ac5b775a653ac2bfa Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Thu, 19 Dec 2024 17:15:23 +0100 Subject: [PATCH] IMPROVEMENT: switch to from pip uv Workaround a python 3.13.1 bug --- .github/workflows/pylint.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0bad8aab..3e31e628 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -14,12 +14,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.13"] + python-version: ["3.9", "3.12"] + + env: + UV_SYSTEM_PYTHON: 1 steps: - name: Checkout uses: actions/checkout@v4 + # https://docs.astral.sh/uv/guides/integration/github/ + - name: Install uv and set the python version + uses: astral-sh/setup-uv@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: @@ -28,8 +37,7 @@ jobs: - name: Install dependencies # these extra packages are required by pylint to validate the python imports run: | - python -m pip install --upgrade pip - pip install 'pylint>=3.3.2' defusedxml requests pymavlink pillow numpy matplotlib pyserial + uv pip install 'pylint>=3.3.2' defusedxml requests pymavlink pillow numpy matplotlib pyserial setuptools - name: Analysing the code with pylint run: |