Add poetry caching support #281
@patrick91 I looked at that failure briefly but couldn't figure it out. If you know what the issue is and want to submit a separate PR, that would be great. Otherwise, we don't need to block this on that.
What you do need to fix is the
As of yesterday, `@actions/setup-python@v3` supports this via v3.1.0: [Release](https://github.com/actions/setup-python/releases/tag/v3.1.0), [Tag](https://github.com/actions/setup-python/tree/v3.1.0), actions/setup-python#281 ```yaml steps: - uses: actions/checkout@v3 - name: Install poetry run: pipx install poetry - uses: actions/setup-python@v3 with: python-version: '3.9' cache: 'poetry' - run: poetry install - run: poetry run pytest ``` See also: python-poetry/poetry#4205
…ython@v3 poetry install will pick up the python binary at the time it was installed (before actions/python ran) so it looks like poetry env needs to be set manually. https://github.com/actions/setup-python/releases/tag/v3.1.0 https://github.com/actions/setup-python/tree/v3.1.0 actions/setup-python#281