-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to use for Python-based actions #41
Comments
It looks for lockfile as the cache key when |
You're referring to the secondary problem, correct? I got that solved in Discord, but unless I want to export my lock files manually or rebuild a secondary PR workflow around the exported file, I need a way to tell pdm where to look for the project. |
Okay, so what problems are left, exporting issue or changing directory? |
Sorry for mixing this two. I have both problems and they block me from using PDM for an GitHub Action. The primary here is, that it's impossible to use setup-pdm when the Python project I'm about to use is not in the current directory (but in this case I'm basically trying to migrate everything into PDM instead of doing exports: hynek/build-and-inspect-python-package#57 I can't be 100% sure that will work out, but currently I'm blocked on this. |
We have fixed this problem on Discord: my failure is only caused by the caching implemention. The solution is to either disable it or point it to the file. |
I've been using pdm for a while to manage the deps for my build-and-inspect-python-package but kept exporting to an requirements.txt. But after running into some issues with
pdm export
I've decided to try to switch to pdm wholesale, but that doesn't seem to be possible, because pdm instantly looks for a pdm.lock and fails if it doesn't find it: https://github.com/hynek/build-and-inspect-python-package/actions/runs/5636001548/job/15267605972You have more experience writing GitHub Actions so maybe I'm missing something? It seems to me tho, that I'd need an
project-path
input to be able to point the action to${{ github.action_path }}
?The text was updated successfully, but these errors were encountered: