Skip to content

Commit

Permalink
chore(workflows): update setup-python and cache actions versions
Browse files Browse the repository at this point in the history
Updated the setup-python action to v5 and cache action to v4 for better compatibility and performance. Fixed syntax issue in the build workflow.
  • Loading branch information
obeone committed Apr 13, 2024
1 parent e27b222 commit f46115d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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 }}
Expand All @@ -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'
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit f46115d

Please sign in to comment.