Closed HarrisonWilde closed 1 year ago
I don't have a clear understanding of what is wrong. Could you elaborate a little? Even better, do you have a link to a failing workflow?
Sure, here is a link to a failing workflow: https://github.com/nhsx/NHSSynth/actions/runs/4947627734/jobs/8847264713
So the problem is something with the cacheing of the poetry installation I think. But I have always had that with
option set meaning the venv should be in the project. However, you can see in the readout from that workflow that it is looking elsewhere. Hence my "fix" of manually setting the config. Just thought I would open the convo to attempt to solve this.
I know Github has had some issues today. Would you mind invalidating the cache and trying once more, just to rule out Github being the cause?
I seem to have read somewhere that you shouldn't specify .venv
as the location when using virtualenvs.in-project=true
, as .venv
is already the default location for installing the dependencies in the project.
Also, make sure that in the caching step, you are using the correct path. I think the path is relative to the github workspace, so:
${{ github.workspace }}/path/to/your/.venv
Did you manage to resolve this? Closing for now, but feel free to update the issue later :+1:
My action looks like this:
I used to instead use the
with
usage underneath the action, but I kept getting an error that on the "Install Dependencies" stage of the workflow it was looking for a virtual env outside of the project folder. Is this a problem with caching the install?