From 2380c33ef06b86ea0c27dfa3f3012c597d2d9e9e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 3 Jul 2025 09:41:56 +0200 Subject: [PATCH] CI: use uv instead of pip (#23631) * use uv * Windows 2019 is deprecated --- .github/workflows/Tasmota_build_devel.yml | 16 ++++++++-------- .github/workflows/Tasmota_build_master.yml | 16 ++++++++-------- .github/workflows/build_all_the_things.yml | 18 +++++++++--------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/Tasmota_build_devel.yml b/.github/workflows/Tasmota_build_devel.yml index 66ebbf7c9..56bb53215 100644 --- a/.github/workflows/Tasmota_build_devel.yml +++ b/.github/workflows/Tasmota_build_devel.yml @@ -108,8 +108,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Add SHA to footer run: | @@ -158,8 +158,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio - name: Add SHA to footer run: | COMMIT_SHA_LONG=$(git rev-parse --short HEAD || echo "") @@ -209,8 +209,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Download safeboot firmwares uses: actions/download-artifact@v4 @@ -256,8 +256,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Download safeboot firmwares uses: actions/download-artifact@v4 diff --git a/.github/workflows/Tasmota_build_master.yml b/.github/workflows/Tasmota_build_master.yml index 4050742b9..3f4398bf3 100644 --- a/.github/workflows/Tasmota_build_master.yml +++ b/.github/workflows/Tasmota_build_master.yml @@ -42,8 +42,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Add "release" to footer run: | @@ -86,8 +86,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Add "release" to footer run: | @@ -136,8 +136,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Download safeboot firmwares uses: actions/download-artifact@v4 @@ -181,8 +181,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Download safeboot firmwares uses: actions/download-artifact@v4 diff --git a/.github/workflows/build_all_the_things.yml b/.github/workflows/build_all_the_things.yml index 9cd5fdcf4..97a8a49c1 100644 --- a/.github/workflows/build_all_the_things.yml +++ b/.github/workflows/build_all_the_things.yml @@ -19,7 +19,7 @@ on: jobs: os-check-win: - runs-on: windows-2019 + runs-on: windows-latest if: github.repository == 'arendst/Tasmota' strategy: fail-fast: true @@ -34,8 +34,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio - name: Run PlatformIO env: PYTHONIOENCODING: utf-8 @@ -62,8 +62,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio - name: Run PlatformIO env: PYTHONIOENCODING: utf-8 @@ -120,8 +120,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio cp ./platformio_override_sample.ini ./platformio_override.ini - name: Run PlatformIO env: @@ -149,8 +149,8 @@ jobs: python-version: '3.13' - name: Install dependencies run: | - pip install wheel - pip install -U platformio + pip install uv + uv pip install --system platformio - name: Run PlatformIO env: PYTHONIOENCODING: utf-8