Enable Space CI

#3
by Wauplin HF staff - opened
Owner

This PR enables Space CI on your Space. Gradio Space CI is a tool to create ephemeral Spaces for each PR opened on your Space repo. The goal is to improve developer experience by making the review process as lean as possible.

⚙️ How it works:

  • Listens to pull requests events:
    • If PR is opened => starts an ephemeral Space
    • If PR is updated => updates the Space
    • If PR is closed => deleted the Space
  • Checks PR author:
    • If trusted author => ephemeral Space is configured with variables, secrets and hardware.
    • If not a trusted author => ephemeral Space is started without configuration
    • Space owners are trusted by default. Additional "trusted authors" can be configuration manually.

⚠️ Before merging:

  1. Check that the configuration is correct. By default the Space is configured to run ephemeral Spaces on a (free) CPU instance without any secrets.
  2. You must set HF_TOKEN as a secret in your Space settings. Token must have 'write' permission. You can create a new one in your User settings.

This is an automated PR created with https://huggingface.co/spaces/Wauplin/gradio-space-ci.

For more details about Space CI, checkout [this page]](https://huggingface.co/spaces/Wauplin/gradio-space-ci/blob/main/README.md).

If you find any issues, please report here: https://huggingface.co/spaces/Wauplin/gradio-space-ci/discussions

Feel free to ignore this PR.

Wauplin changed pull request status to merged

Sign up or log in to comment