Skip to content

Commit 587faea

Browse files
committed
disable python caching when using act
1 parent 4b0fcb1 commit 587faea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/setup/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ runs:
2828
shell: bash
2929
run: |
3030
# Determine cache type based on available lockfile
31-
if [ -f poetry.lock ]; then
31+
if [ "x${{ env.ACT }}" != "x" ]; then
32+
echo "Local GHA testing environment detected, disabling python cache"
33+
elif [ -f poetry.lock ]; then
3234
echo "package_tool=poetry" >> $GITHUB_OUTPUT
3335
elif [ -f requirements.txt ]; then
3436
echo "package_tool=pip" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)