pybotics icon indicating copy to clipboard operation
pybotics copied to clipboard

Cache poetry dependencies in workflows

Open engnadeau opened this issue 2 years ago • 0 comments

User Story

Dev wants to cache poetry dependencies for faster workflow runs

Potential Solutions

  • Use the poetry cache option in actions/setup-python@v4:
- uses: actions/setup-python@v4
  with:
    python-version: "3.x"
    cache: "poetry"

Additional Context

  • Currently failing due to poetry not being available early in the workflow: https://github.com/engnadeau/pybotics/runs/7921609651?check_suite_focus=true
  • Apparently a new release is incoming: https://github.com/actions/setup-python/issues/369#issuecomment-1214675418

engnadeau avatar Aug 19 '22 16:08 engnadeau