Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 7 additions & 2 deletions conda_forge_admin_requests/access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions examples/example-cirrus-runners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
action: cirrus-runners
feedstocks:
# list of feedstock names (sans `-feedstock` suffix)
- pytorch-cpu
# revoke access to the runners
revoke: false
Loading