Skip to content

Commit 943e2d3

Browse files
committed
a different approach to skip python caching with act
1 parent 587faea commit 943e2d3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ runs:
2424
using: composite
2525
steps:
2626
- name: Evaluate Python environment
27+
if: ${{ !env.ACT }}
2728
id: env-check
2829
shell: bash
2930
run: |
3031
# Determine cache type based on available lockfile
31-
if [ "x${{ env.ACT }}" != "x" ]; then
32-
echo "Local GHA testing environment detected, disabling python cache"
33-
elif [ -f poetry.lock ]; then
32+
if [ -f poetry.lock ]; then
3433
echo "package_tool=poetry" >> $GITHUB_OUTPUT
3534
elif [ -f requirements.txt ]; then
3635
echo "package_tool=pip" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)