From f46115d04e9d70a9e97156fbb538f8407bc59766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gre=CC=81goire=20Compagnon?= Date: Sat, 13 Apr 2024 03:25:16 +0200 Subject: [PATCH] chore(workflows): update setup-python and cache actions versions Updated the setup-python action to v5 and cache action to v4 for better compatibility and performance. Fixed syntax issue in the build workflow. --- .github/workflows/build-and-publish.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 06fa1e1..ce6a26f 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python 3.12 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.12' @@ -27,7 +27,7 @@ jobs: # Cache lxml wheels based on the hashed version to speed up builds. - name: Cache lxml wheels id: cache-lxml - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .wheels key: ${{ runner.arch }}-lxml-${{ steps.lxml-version.outputs.lxml_line }} @@ -42,7 +42,8 @@ jobs: else echo "Wheel not found, need to build." echo "::set-output name=wheel_exists::false" - + fi + # Build lxml wheel if it is not found in the cache. - name: Build lxml wheel if not cached if: steps.check-wheel.outputs.wheel_exists == 'false' @@ -71,7 +72,7 @@ jobs: # Cache lxml wheels based on the hashed version to speed up builds. - name: Cache lxml wheels id: cache-lxml - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .wheels key: ${{ runner.arch }}-lxml-${{ steps.lxml-version.outputs.lxml_line }}