ci: make pycafe link on each commit / playground #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Thiago 👋,
This PR adds two github actions that together set up a Python/Streamlit playground with the latest
st-annotated-text
.This process is documented here for one of our libraries. But I wanted to try it out on a streamlit project, and this one was easy to build.
I've tested this out on maartenbreddels#1 to see if it works. It does, and it generates a link in the status:

Which should bring you to this playground
The reason that this is not one GitHub action, but two is due to security. The build.yml runs with the permission of the person opening the PR (and thus cannot write the status text). The pycafe.yml workflow runs with your permission (it can write the status text), but run on your master branch (so it does not execute a modified workflow files).
This is super useful for trying out a branch when someone opens a PR, nothing to install, no server running in the background 🍃 and no costs.
Let me know what you think.
Regards,
Maarten
PS: this PR does not write the status text yet, because pycafe.yml should be merged first before it runs, that's why I've created maartenbreddels#1 to show that it works.