Replies: 2 comments
-
If the absolute path to the |
Beta Was this translation helpful? Give feedback.
-
I don't know about GitLab, but the following works well for me in GitHub:
The I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I want to cache Poetry virtual environments between builds of my Python application. I have configured the pipeline so that the virtual environment is recreated every time
pyproject.toml
changes (poetry.lock
is not comitted):The virtual environment is created as follows:
This works locally, but it fails in GitLab CI/CD on the second pipeline run:
The reason is that
pytest
cannot locate the root package (lego
). However, I have verified that the root package is located in the virtual environment (.venv
):Here
lego.pth
includes the current job ID in the path.How can I properly cache Poetry virtual environments between CI/CD pipeline runs?
Beta Was this translation helpful? Give feedback.
All reactions