Skip to content

Commit

Permalink
[CI] PyCafe (#831)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL authored Oct 28, 2024
1 parent 61f892d commit 1c3fa1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tools/pycafe/create_pycafe_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
from typing import Optional
from urllib.parse import quote, urlencode

import vizro
from github import Auth, Github

PACKAGE_VERSION = vizro.__version__

GITHUB_TOKEN = sys.argv[1]
REPO_NAME = sys.argv[2]
PR_NUMBER = int(sys.argv[3])
RUN_ID = sys.argv[4]
COMMIT_SHA = sys.argv[5]
WHL_FILE = next(Path("dist").glob("*.whl")).name
PYCAFE_URL = "https://py.cafe"
VIZRO_RAW_URL = "https://raw.githubusercontent.com/mckinsey/vizro"

Expand Down Expand Up @@ -48,7 +50,7 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None
filter(
None,
[
f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/{WHL_FILE}",
f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl",
*(extra_requirements or []),
],
)
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/examples/scratch_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


page = vm.Page(
title="Test New II",
title="Test New III",
components=[
vm.Graph(
figure=px.bar(
Expand Down

0 comments on commit 1c3fa1c

Please sign in to comment.