Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 8 min read How-to mediumAdept

Migrating Your GitHub CI to Hugging Face Jobs

GitHub Actions jobs can run on Hugging Face Jobs by using a dispatcher Space and a GitHub App that receive `workflow_job.queued` webhooks. For any `hf-jobs-*` runs-on label, the dispatcher mints a short-lived runner registration token and launches an ephemeral self-hosted runner on matching CPU or GPU hardware. Setup takes duplicating the dispatcher Space on cpu-upgrade (cpu-basic can sleep and leave jobs queued), creating the App, and a one-line runs-on change. For Trackio, a Playwright Docker image cut CPU CI from 1m40s to 1m10s, and a new T4 GPU suite runs in 45s for under a cent.

Assumes: GitHub Actions workflowsDocker imagesGitHub Apps and webhooks

Related posts

  • How GitHub uses GitHub Actions and Actions larger runners to build and test GitHub.com

    GitHub Engineering mediumAdept

    GitHub moved CI for GitHub.com to GitHub Actions on larger runners, peaking at about 4,500 concurrent 32-core runners, 15,000 jobs per hour and 150,000 cores. Custom VM images that pre-bundle tools and a cached build of the project source, refreshed several times a day through an API, cut workflow time from about 50 to 12 minutes. Reusable workflows keep CI configuration and runner selection central across repositories, and reusing results when Git tree IDs match skips 300-500 runs a day. Isolated runners reach private VPC services through an OIDC-token-validating remote access gateway, whose scaffolding is open-sourced.

  • Using GitHub Actions with Heroku Flow for additional Security Control

    Heroku Engineering mediumAdept

    Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action. The action uses the Platform API's Source Endpoint to upload private repo code, deploy apps on push, dispatch or schedule events, and create, update or remove Review Apps on pull request events. A weekly scheduled workflow rebuilds and redeploys the runner to meet GitHub's 30-day update requirement. Tradeoffs include no repo link in the Review App UI, no automatic Heroku CI tests, no Fir support, and a custom runner image that other actions should be tested against.

  • Using Github Actions with Railway

    Railway mediumAdept

    Railway deployments can be driven from GitHub Actions instead of the built-in branch-push trigger by creating a project token, storing it as a repository secret (RAILWAY_TOKEN), and running `railway up --service=<id>` inside the official Railway CLI container. A sample workflow triggers on pushes to main, checks out the code and uploads it to Railway. The token must stay secret, but the service ID can be passed openly. The same token approach also works for tasks like running database migrations before deploy or managing pull requests.

  • Monitor your CI performance using Sentry

    Sentry mediumAdept

    Sentry's tracing model can represent GitHub Actions workflows as traces, with each job's steps as spans, so slow steps and run-to-run variance show up the same way they would for an API request. Applied to the Sentry .NET SDK's macOS build job, it showed the Build step taking about 44 of 83 minutes. Better caching across runs and parallelized tests cut the job to about 24 minutes, a 71% reduction, and custom dashboards tracking p50/p90 showed overall workflow runs about 64% faster. Setup takes a Sentry project, a private `.sentry` repo with a `sentry_config.ini` holding the DSN, and an experimental GitHub App that reads Actions metadata. Ingested jobs count against your span quota.

  • Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot

    Hugging Face mediumAdept

    SkyPilot now supports Hugging Face Storage as a first-class backend (`store: hf`), so jobs on any of 20+ clouds, Kubernetes or on-prem can mount Hub buckets (read-write) or model/dataset repos (read-only) via an `hf://` URL and an existing `HF_TOKEN`. MOUNT mode uses the `hf-mount` FUSE driver with lazy, byte-range reads and an on-disk cache. Because Hugging Face charges no egress, reads onto GPUs anywhere are free; writes still pay the compute cloud's egress. A Qwen3.5-4B fine-tune loaded the model in about 30 seconds and wrote 8.43 GB checkpoints at roughly 112-168 MB/s across AWS, GCP and Lambda, while Xet content-defined chunking deduplicates incremental checkpoints, model variants and appended Parquet data.

The quest for software engineering knowledge.

Look:
Layout: