-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Example of actions with dependencies using conda #47
Comments
hey @jchiquet 👋 i'm running into a similar issue. it looks like you ended up just pip installing jupyter? but i would love to use my conda envt in my action. all works locally but not in an action. did you aver make any progress or receive help on this? my workflow is here i run into Jupyter not found /nbformat not found errors when i build. |
Hi! Nevertheless, here are two examples in the context of our journal using conda (with micromambda) and quarto with the Jupyter kernel.
Hopefully this helps! At this point, I have not yet managed to use the "official" actions (quarto publish) with conda in an advanced way without there being small problems, so I am rendering "by hand/manually". |
Hello ! Thanks for the feedback on this. does the Otherwise, I'll try to see if Quarto correctly find miniconda installation on GHA. Quarto is supposed to find conda env, but I never used it in GHA with conda so not sure how the conda environment is activated there. Running |
hi @cderv you know i could NOT get this to work. It looks like @jchiquet did get it to work but for me it always returned a "cant find jupyter" error . i got this error locally until i discovered
I ended up creating a docker container with mambaforge in it and installed quarto directly. |
Hi @cderv , sorry it took me so long to answer. Here is an example of micromamba setup which fails when using the quarto publish action, using the knitr kernel (fails with message https://github.com/computorg/computo-quarto-extension/actions/runs/4192833325/workflow This work with direct call to quarto, like that: ( |
it seems like there is a default envt that these actions assume you are using? especially if you have to use apt to install jupyter @jchiquet ? |
Hi @cderv , I haven't used (mini)conda for some time... If I encounter any problems with recent versions of quarto or quarto actions, I will let you know. But everything works fine on my side for now. |
Because you switch from Miniconda, right ? I'll set a test repo with conda to see how it goes. |
For advanced examples with quarto + Python, yes...
I'll be happy to give my feedback from past 'miniconda' experiences, if it can help |
Hi,
I had trouble using miniconda (setup-miniconda@v2 + environment.yml) in conjunction with the quarto publishing action to add Python modules and dependencies. On the other hand, all this worked with setup-python@v4 and the use of pip and a requirements.txt file.
See workflow here (use of conda commented) https://github.com/computorg/published-paper-tsne/actions/runs/3257812600/workflow
Did I misconfigure something? Maybe I didn't activate the right environment? Adding an entry with (mini)conda among the usage examples with dependencies would be very helpful.
Thanks
The text was updated successfully, but these errors were encountered: