Skip to content

Commit

Permalink
ci(agent): Disable Python dependency caching on Windows
Browse files Browse the repository at this point in the history
On Windows, unpacking cached dependencies takes longer than just installing them with `poetry install`. :')
  • Loading branch information
Pwuts committed Mar 22, 2024
1 parent 828b81e commit 2a0e087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/autogpt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ jobs:
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Set up Python dependency cache
# On Windows, unpacking cached dependencies takes longer than just installing them
if: runner.os != 'Windows'
uses: actions/cache@v4
with:
path: ${{ runner.os == 'Windows' && '~\AppData\Local\pypoetry\Cache' || runner.os == 'macOS' && '~/Library/Caches/pypoetry' || '~/.cache/pypoetry' }}
path: ${{ runner.os == 'macOS' && '~/Library/Caches/pypoetry' || '~/.cache/pypoetry' }}
key: poetry-${{ runner.os }}-${{ hashFiles('autogpts/autogpt/poetry.lock') }}

- name: Install Poetry (Unix)
Expand Down

0 comments on commit 2a0e087

Please sign in to comment.