diff --git a/README.md b/README.md index e5b46d2df..cb1cecb62 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,8 @@ submit a PR adding your feedstock name to a new `.yml` file in `requests` folder Available opt-in resources: - Travis CI: See `examples/example-travis.yml` -- [`open-gpu-server`](https://github.com/Quansight/open-gpu-server) (includes GPU CI and long-running builds): See `examples/example-open-gpu-server.yml`. +- Cirrus Runners: See `examples/example-cirrus-runners.yml` +- Cirun: Provides integration with selected cloud providers. Check the [`conda-forge/.cirun`](https://github.com/conda-forge/.cirun) repository for more details. ## Request a CFEP-3 copy to conda-forge diff --git a/conda_forge_admin_requests/access_control.py b/conda_forge_admin_requests/access_control.py index a2ccfdd3a..33e0060f1 100644 --- a/conda_forge_admin_requests/access_control.py +++ b/conda_forge_admin_requests/access_control.py @@ -165,6 +165,11 @@ def _process_request_for_feedstock( if action == "travis": register_ci_cmd.append("--with-travis") + elif action == "cirrus-runners": + register_ci_cmd.append("--with-cirrus-runners") + if revoke: + register_ci_cmd.append("--remove") + elif action == "cirun": register_ci_cmd.append("--with-cirun") @@ -194,7 +199,7 @@ def _process_request_for_feedstock( if not revoke: if action == "travis": with_cmd = "--with-travis" - elif action == "cirun": + elif action in ("cirun", "cirrus-runners"): with_cmd = "--with-github-actions" print("Generating a new feedstock token") @@ -279,7 +284,7 @@ def check(request: Dict[str, Any]) -> None: check_if_repo_exists(feedstock) action = request["action"] - assert action in ("travis", "cirun"), f"Unknown action {action}" + assert action in ("travis", "cirun", "cirrus-runners"), f"Unknown action {action}" if action == "cirun": assert "resources" in request, "No resources field in request" diff --git a/examples/example-cirrus-runners.yml b/examples/example-cirrus-runners.yml new file mode 100644 index 000000000..26acfb002 --- /dev/null +++ b/examples/example-cirrus-runners.yml @@ -0,0 +1,6 @@ +action: cirrus-runners +feedstocks: + # list of feedstock names (sans `-feedstock` suffix) + - pytorch-cpu +# revoke access to the runners +revoke: false