-
Notifications
You must be signed in to change notification settings - Fork 34
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
Feature Request: Github actions #39
Comments
That's one way, but not the only one. Anyway, are you aware of https://github.com/coq-community/docker-coq-action? If the Docker-Coq images (https://github.com/coq-community/docker-coq) were extended to include Alectryon, then it would be easy to add the command you mention as one of the custom steps. |
Hmm... the
So if we could package alectryon that would be great, since there doesn't seem to be a package for APT. ...Ah, ok so: the The Ok, so the
So I suppose what you meant is altering one of these to include |
Or perhaps since alectryon is written in python it would make most sense to build an APT package (ie |
My suggestion was even to go further than this and request the inclusion of Alectryon in the standard Docker-Coq images. If this was done, then there would be no need to install it during the call to |
Ok, thank you :) So
|
although thinking about it, creating a |
BTW, @Bruno-366, if you see how to improve things with respect to the documentation of Docker-Coq / Docker-Coq-Action, feel free to open PRs. |
I half-laugh since I'm still not 100% sure I'm correct, but with that said, I that the problem for me was mainly that everything is split into many interrelated projects. The information is there, but its hard to see since its a lot of context that is needed. I'll try to make PR, see how things go. |
What you wrote in #39 (comment) is fully correct (apart from the spelling of coq into qoc 😆).
Yeah, maybe adding more links and explaining the relationships would help. |
HI Bruno, I think adding Alectryon to docker-coq would be wonderful 👍 Let me know if you run into issues. |
Let's cc @erikmd here (although this would warrant a proper issue on the docker-coq repo). |
Hi @Bruno-366 (thanks @Zimmi48 thanks for the Cc!) I actually thought recently about a similar idea 🙂 (extending but I wasn't sure @Zimmi48 and @cpitclaudel precisely would be OK to extend With a bit of chance, maybe I'll have the time to prepare some PoC regarding this automation, by next WE (May 16th). So I will open an issue in However, note that the addition of Alectryon to Docker-Coq can't be done trivially for each version of Coq (in a uniform way, I mean) because:
|
Ok that's cool then 😄 |
Hi @Bruno-366, indeed; but as I just said in my previous comment (after the edit), |
oh ok cool :) I'll try it out |
Hi @erikmd , I'm not 100% sure what the oldest supported version is. I think 8.10.0+0.7.0. |
OK! BTW regarding your earlier comment, @cpitclaudel:
do you think it's easy to setup an .opam package specification for alectryon itself? (I'm not 100% sure it's feasible for the python part though, so maybe a few Because in this case, installing Alectryon would be as easy as doing: opam pin add alectryon "https://github.com/cpitclaudel/alectryon.git#master" Otherwise, if you think it's not feasible to easily combine the python+ocaml parts in a single OPAM package, do you believe one could advise running first the opam command above, then either one of the following two pip commands?
(according to https://stackoverflow.com/a/24811490/9164010, the second command might be faster) |
Alectryon doesn't have any OCaml code — it's all Python. So a pip package would likely make a lot of sense, I just haven't investigated how one would do that :) I think it would be quite reasonable to tell people to install SerAPI and Coq with opam and then Alectryon with pip. |
OK! thank you @cpitclaudel for your feedback; for the record, there are several pip packages that already work in this way (I mean, not everything is installed by pip, only the "frontend" part or so) − e.g., https://pypi.org/project/docker-compose/ |
Thanks @erikmd ! I hope someone will have time to prepare such a package, then :) |
Maybe you should open a separate issue dedicated to the question of a PyPI package and label it as "help wanted". |
Good point, done (#41) |
Update @erikmd: there's a PyPI package for alectryon now ( |
Hello! Love the project, is there any way to use alectryon as a github action?
For example to publish it to Github Pages?
The README mentions that it could integrate with Sphinx, Docutils, Pelican, readthedocs, Nikola.
Is that the recommended approach?
I'm pretty sure github actions usually use docker, and I could create a dockerfile that essentially does the following
The text was updated successfully, but these errors were encountered: