Skip to content

Commit

Permalink
Build contributed recipes in mathbunnyru fork as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Aug 31, 2024
1 parent f78d97a commit e136ad7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/contributed-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jobs:
- name: Calculate recipes matrix 🛠
id: set-matrix
run: docs/using/recipe_code/generate_matrix.py >> "${GITHUB_OUTPUT}"
env:
REPOSITORY_OWNER: ${{ github.repository_owner }}

test-recipes:
runs-on: ${{ matrix.runs-on }}
needs: generate-matrix
if: github.repository_owner == 'jupyter'
if: github.repository_owner == 'jupyter' || github.repository_owner == 'mathbunnyru'

steps:
- name: Checkout Repo ⚡️
Expand Down
7 changes: 6 additions & 1 deletion docs/using/recipe_code/generate_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import json
import os
from pathlib import Path
from typing import Any

THIS_DIR = Path(__file__).parent.resolve()
REPOSITORY_OWNER = os.environ["REPOSITORY_OWNER"]


def generate_matrix() -> dict[str, Any]:
dockerfiles = sorted(file.name for file in THIS_DIR.glob("*.dockerfile"))
runs_on = ["ubuntu-latest"]
if REPOSITORY_OWNER == "jupyter":
runs_on.append("ARM64")
return {
"dockerfile": dockerfiles,
"runs-on": ["ubuntu-latest", "ARM64"],
"runs-on": runs_on,
"exclude": [{"dockerfile": "oracledb.dockerfile", "runs-on": "ARM64"}],
}

Expand Down

0 comments on commit e136ad7

Please sign in to comment.