Open reddytocode opened 5 days ago
At first glance it looks correct. Both use the same cache key. I find it a bit odd that your Post Load cached venv
took over an hour to complete in the second run, with a bunch of errors.
The cache seems to have worked in this subsequent run. Is it possible this is just Github actions having problems?
@sondrelg Yeah, that subsequent run uses setup-python to use the cache:
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'poetry'
- run: poetry install
- run: poetry run pytest
I tried the Testing example in the Readme, but I get: Cache is not found.
My action
Originally I tried this action on a big project and I thought that it was because of a conflict with another of the actions that I use, so I created a project just to try this action.
Any ideas what I could be doing wrong?